]> git.lyx.org Git - lyx.git/log
lyx.git
3 years agoFix bug #11986
Richard Kimberly Heck [Tue, 29 Sep 2020 02:34:52 +0000 (22:34 -0400)]
Fix bug #11986

3 years agoWe really do not want id to change
Richard Kimberly Heck [Tue, 29 Sep 2020 02:20:22 +0000 (22:20 -0400)]
We really do not want id to change

3 years agoFix minor annoyance with previous commit.
Richard Kimberly Heck [Tue, 29 Sep 2020 02:07:08 +0000 (22:07 -0400)]
Fix minor annoyance with previous commit.

When validating local layout, in particular, we create a dummy text TextClass
and so are not necessarily modifying previously declared material. Hence, we
get a spurious (but harmless) "Incomplete argument definition!" warning. This
suppresses it, but to do that we need to propogate the ReadType.

3 years agoAllow argument definitions in layout files to modify existing ones.
Richard Kimberly Heck [Tue, 29 Sep 2020 02:06:11 +0000 (22:06 -0400)]
Allow argument definitions in layout files to modify existing ones.

This is what layout re-definitions do in all other cases.

3 years agoMove defaults into struct definition
Richard Kimberly Heck [Tue, 29 Sep 2020 01:30:40 +0000 (21:30 -0400)]
Move defaults into struct definition

3 years agoUpdate layouts
Enrico Forestieri [Mon, 28 Sep 2020 20:32:30 +0000 (22:32 +0200)]
Update layouts

3 years agoFix the layout2layout script
Enrico Forestieri [Mon, 28 Sep 2020 20:29:28 +0000 (22:29 +0200)]
Fix the layout2layout script

It was not correctly updated at dab71087ad18c194, and 6998e764.

3 years agoamend 6d6fc761be
Pavel Sanda [Mon, 28 Sep 2020 14:44:12 +0000 (16:44 +0200)]
amend 6d6fc761be

3 years agoQt4 compilable again
Pavel Sanda [Mon, 28 Sep 2020 14:34:42 +0000 (16:34 +0200)]
Qt4 compilable again

3 years agoUse real italic slope for slanted caret
Yuriy Skalko [Wed, 23 Sep 2020 08:18:08 +0000 (11:18 +0300)]
Use real italic slope for slanted caret

3 years agoMake script compliant with python 3
José Matos [Mon, 28 Sep 2020 10:13:47 +0000 (11:13 +0100)]
Make script compliant with python 3

3 years agoRevert "Update layouts"
Scott Kostyshak [Sun, 27 Sep 2020 20:47:28 +0000 (16:47 -0400)]
Revert "Update layouts"

A fix to layout2layout is needed first. See:

  https://www.mail-archive.com/search?l=mid&q=20200927192424.GA1224%40GIOVE

This reverts commit 5d7efd2fa934b138933ffed5a1e19c9d52e8d933.

3 years agoUpdate layouts
Scott Kostyshak [Sun, 27 Sep 2020 15:44:59 +0000 (11:44 -0400)]
Update layouts

Fixes a slight delay when cutting (#11988).

3 years agoAmend 448e5efab42
Juergen Spitzmueller [Sat, 26 Sep 2020 10:12:09 +0000 (12:12 +0200)]
Amend 448e5efab42

Only set langClosed to true if it really has been closed.

3 years agoctests: ignore Japanese dvi3 systemF tests
Scott Kostyshak [Fri, 25 Sep 2020 19:11:17 +0000 (15:11 -0400)]
ctests: ignore Japanese dvi3 systemF tests

These started to fail due to a "luatex" package update in the TL20
cycle. From an ML thread [1]:

  The LuaTeX-ja package, which is loaded by bxjs* class, is not
  designed to be used with dvilua(la)tex.

[1] https://www.mail-archive.com/search?l=mid&q=20200917155146.ec1bd9f9b5d5f5936513e5dd%40yahoo.co.jp

3 years agoTypo
Scott Kostyshak [Fri, 25 Sep 2020 19:11:03 +0000 (15:11 -0400)]
Typo

3 years agoUse correct bounding box when exporting from command line
Enrico Forestieri [Fri, 25 Sep 2020 18:58:40 +0000 (20:58 +0200)]
Use correct bounding box when exporting from command line

Without GUI an image is not available even if it is actually cached.
In this case we load the image for obtaining its dimensions in order
to correct the clipping bounding box.

This amends 380f34a1.

3 years agoCorrect comment
Enrico Forestieri [Fri, 25 Sep 2020 10:11:10 +0000 (12:11 +0200)]
Correct comment

3 years agoDo not correct clipping bounding box for vector formats
Enrico Forestieri [Fri, 25 Sep 2020 10:01:57 +0000 (12:01 +0200)]
Do not correct clipping bounding box for vector formats

This amends 380f34a1 that only took into account the postscript format.

3 years agoGnumeric conversions to html: Remove wrong closing </p> flag
Kornel Benko [Thu, 24 Sep 2020 08:14:35 +0000 (10:14 +0200)]
Gnumeric conversions to html: Remove wrong closing </p> flag

Now LyXHTML export for Spreadsheet.lyx is errorles, but stil we need a wrapper
to remove unneeded 'Ark' captions.

3 years agoRemove default parameter of UndoGroupHelper constructor
Jean-Marc Lasgouttes [Wed, 23 Sep 2020 15:28:36 +0000 (17:28 +0200)]
Remove default parameter of UndoGroupHelper constructor

This can lead to mistakes. If no buffer is required at the beginning,
it is better to pass 'nullptr' explicitly.

Fix a case of missing parameter in GuiCompleter (introduced at
f3656600). This avoids some spurious "There is no group open (creating
one)" messages.

3 years agoUpdate Russian localization
Yuriy Skalko [Wed, 23 Sep 2020 08:01:43 +0000 (11:01 +0300)]
Update Russian localization

3 years agoDo not use a fake row to compute completion dimension
Jean-Marc Lasgouttes [Tue, 22 Sep 2020 13:06:46 +0000 (15:06 +0200)]
Do not use a fake row to compute completion dimension

The code in TextMetrics::completionPosAndDim is needlessly complicated.

1/ It is easier to rely directly on Text::getWord() rather than on the
   helper previousWord().

2/ Using a fake row to compute completion height is overkill. A
   simpler solution is proposed here.

No intended effect. These changes prepare the fix to ticket #11818.

3 years agoSimplify reversion code (keeping the same output)
José Matos [Mon, 21 Sep 2020 13:36:52 +0000 (14:36 +0100)]
Simplify reversion code (keeping the same output)

3 years agoRemove the noun-flag from the separator in index entry
Kornel Benko [Mon, 21 Sep 2020 10:48:58 +0000 (12:48 +0200)]
Remove the noun-flag from the separator in index entry

3 years agoCmake tests: Remove docbook, xhtml, lyx2lyx tests from unreliableTests
Kornel Benko [Sun, 20 Sep 2020 12:25:04 +0000 (14:25 +0200)]
Cmake tests: Remove docbook, xhtml, lyx2lyx tests from unreliableTests

The relevant export-output is done by lyx and not dependent
on some external driver (like latex)
(Graphics conversions don't count here IMHO)

3 years agoCmake export xhtml tests: load dtd if checking ouput with xmllint
Kornel Benko [Sun, 20 Sep 2020 09:47:04 +0000 (11:47 +0200)]
Cmake export xhtml tests: load dtd if checking ouput with xmllint

3 years agoFix unnecessary cprotect
Juergen Spitzmueller [Sun, 20 Sep 2020 06:45:42 +0000 (08:45 +0200)]
Fix unnecessary cprotect

3 years agoRevert "XHTML: remove DOCTYPE, as the document is then understood as HTML4/XHTML1...
Thibaut Cuvelier [Sat, 19 Sep 2020 23:35:14 +0000 (01:35 +0200)]
Revert "XHTML: remove DOCTYPE, as the document is then understood as HTML4/XHTML1, and not XHTML5."

This reverts commit c8e2c17a: this makes some browsers unable to understand basic HTML entities.

3 years agoDocBook: adapt code for older GCC.
Thibaut Cuvelier [Sat, 19 Sep 2020 21:55:07 +0000 (23:55 +0200)]
DocBook: adapt code for older GCC.

3 years agoMerge branch 'feature/docbook' into master
Thibaut Cuvelier [Sat, 19 Sep 2020 18:44:16 +0000 (20:44 +0200)]
Merge branch 'feature/docbook' into master

3 years agoXHTML: fix for encodings in attributes (patch by Kornel)
Thibaut Cuvelier [Sat, 19 Sep 2020 15:26:17 +0000 (17:26 +0200)]
XHTML: fix for encodings in attributes (patch by Kornel)

3 years agoXHTML sections: saner code to close the section.
Thibaut Cuvelier [Sat, 19 Sep 2020 02:26:06 +0000 (04:26 +0200)]
XHTML sections: saner code to close the section.

It only caused troubles in corner cases...

3 years agoXHTML sections: only filter out things that are not Sectioning, not based on the...
Thibaut Cuvelier [Sat, 19 Sep 2020 01:23:00 +0000 (03:23 +0200)]
XHTML sections: only filter out things that are not Sectioning, not based on the level.

3 years agoXHTML: restore sections.
Thibaut Cuvelier [Wed, 16 Sep 2020 02:13:42 +0000 (04:13 +0200)]
XHTML: restore sections.

3 years agoConverters: always set version to something.
Thibaut Cuvelier [Wed, 16 Sep 2020 02:12:26 +0000 (04:12 +0200)]
Converters: always set version to something.

Otherwise, it's common to compare "None >= (6,2,6)", which makes no sense. Set it to (0,0,0) so that any comparison fails (without an error message).

3 years agoConverters: slightly more pythonic code.
Thibaut Cuvelier [Wed, 16 Sep 2020 02:02:51 +0000 (04:02 +0200)]
Converters: slightly more pythonic code.

3 years agoRevert "XHTML: remove <section> support."
Thibaut Cuvelier [Wed, 16 Sep 2020 01:37:46 +0000 (03:37 +0200)]
Revert "XHTML: remove <section> support."

This reverts commit 52216b73

3 years agoXHTML: remove DOCTYPE, as the document is then understood as HTML4/XHTML1, and not...
Thibaut Cuvelier [Wed, 16 Sep 2020 01:22:38 +0000 (03:22 +0200)]
XHTML: remove DOCTYPE, as the document is then understood as HTML4/XHTML1, and not XHTML5.

3 years agoXHTML: remove <section> support.
Thibaut Cuvelier [Wed, 16 Sep 2020 01:18:32 +0000 (03:18 +0200)]
XHTML: remove <section> support.

3 years agoDocBook: slight code simplification.
Thibaut Cuvelier [Sat, 12 Sep 2020 23:50:11 +0000 (01:50 +0200)]
DocBook: slight code simplification.

3 years agoDocBook: fix output in Layout::write.
Thibaut Cuvelier [Sat, 12 Sep 2020 01:21:08 +0000 (03:21 +0200)]
DocBook: fix output in Layout::write.

3 years agoDocBook: implement InsetBox titles.
Thibaut Cuvelier [Fri, 11 Sep 2020 23:52:58 +0000 (01:52 +0200)]
DocBook: implement InsetBox titles.

3 years agoDocBook: fix a crash in bibliography paragraphs.
Thibaut Cuvelier [Fri, 11 Sep 2020 23:43:57 +0000 (01:43 +0200)]
DocBook: fix a crash in bibliography paragraphs.

3 years agolayout2layout: use name instead of pseudonym.
Thibaut Cuvelier [Fri, 11 Sep 2020 23:04:43 +0000 (01:04 +0200)]
layout2layout: use name instead of pseudonym.

3 years agoDocBook: work for more subfigure cases.
Thibaut Cuvelier [Fri, 11 Sep 2020 22:39:23 +0000 (00:39 +0200)]
DocBook: work for more subfigure cases.

EmbeddedObjects hid quite a few gems :).

3 years agoDocBook: ensure xml:id is not output too many times.
Thibaut Cuvelier [Fri, 11 Sep 2020 21:38:11 +0000 (23:38 +0200)]
DocBook: ensure xml:id is not output too many times.

This is mostly important for subfigures, but debugging this issue showed that InsetCaption could be slightly simplified and InsetLabel should be made a tad more robust.

3 years agoDocBook: handle other cases of subfigures.
Thibaut Cuvelier [Fri, 11 Sep 2020 01:14:41 +0000 (03:14 +0200)]
DocBook: handle other cases of subfigures.

3 years agoDocBook: in configure.py, DeclareDocBookClass doesn't need to be checked anymore.
Thibaut Cuvelier [Fri, 11 Sep 2020 01:05:04 +0000 (03:05 +0200)]
DocBook: in configure.py, DeclareDocBookClass doesn't need to be checked anymore.

3 years agoDocBook: remove now useless function in configure.py.
Thibaut Cuvelier [Thu, 10 Sep 2020 23:50:26 +0000 (01:50 +0200)]
DocBook: remove now useless function in configure.py.

3 years agoDocBook: fix handling of new lines and fonts.
Thibaut Cuvelier [Thu, 10 Sep 2020 23:28:59 +0000 (01:28 +0200)]
DocBook: fix handling of new lines and fonts.

Only the font variable was restored to the right state, not fs.

3 years agoXHTML: fix generation of many useless </section>.
Thibaut Cuvelier [Thu, 10 Sep 2020 22:44:49 +0000 (00:44 +0200)]
XHTML: fix generation of many useless </section>.

3 years agoXML: bad fix for a crash that only happened in XHTML.
Thibaut Cuvelier [Thu, 10 Sep 2020 22:39:41 +0000 (00:39 +0200)]
XML: bad fix for a crash that only happened in XHTML.

As an error is output, I suppose that this behaviour is OK.

3 years agoDocBook: remove useless functions.
Scott Kostyshak [Thu, 3 Sep 2020 02:48:23 +0000 (22:48 -0400)]
DocBook: remove useless functions.

3 years agoDocBook: avoid using isspace in StartTag::writeTag.
Thibaut Cuvelier [Wed, 2 Sep 2020 23:23:20 +0000 (01:23 +0200)]
DocBook: avoid using isspace in StartTag::writeTag.

This is the cause of crashes (on both Windows and Linux).

3 years agoDocBook: introduce Floating::docbookFloatType.
Thibaut Cuvelier [Wed, 2 Sep 2020 22:48:55 +0000 (00:48 +0200)]
DocBook: introduce Floating::docbookFloatType.

This ensures that all comparisons for DocBook are made on the same normalised version of the float type. This cased a strange bug where <table> was output within <informaltable> for Linguistics Tableaux.

3 years agoFix two warnings in BufferView.
Thibaut Cuvelier [Wed, 2 Sep 2020 22:37:52 +0000 (00:37 +0200)]
Fix two warnings in BufferView.

3 years agoDocBook: floats can no more override DocBookTag.
Thibaut Cuvelier [Wed, 2 Sep 2020 22:23:31 +0000 (00:23 +0200)]
DocBook: floats can no more override DocBookTag.

This lead to a quite subtle bug. The major problem is that float tags
depend on whether the LyX float has a title (formal) or nor (informal).
This information cannot be encoded in the layout format as easily as a
simple DocBookTag.

3 years agoDocBook: better output with the Linguistics module.
Thibaut Cuvelier [Tue, 1 Sep 2020 22:46:08 +0000 (00:46 +0200)]
DocBook: better output with the Linguistics module.

One issue left: <table> output within an <informaltable>, that does not make sense... I'm debugging it.

3 years agoDocBook: fix crash with Linguistics example.
Thibaut Cuvelier [Tue, 1 Sep 2020 22:36:46 +0000 (00:36 +0200)]
DocBook: fix crash with Linguistics example.

This was due to Floating::docbookTag not returning anything with the floattype_ tableau. Another issue that happened with that document is that the standard library's isspace crashed for some characters. I therefore implemented a more efficient version of the part that required it, and inlined the definition of isspace (even though that part becomes irrespective of locale, but was that feature ever used?).

3 years agoFix a few warnings.
Thibaut Cuvelier [Tue, 1 Sep 2020 22:00:54 +0000 (00:00 +0200)]
Fix a few warnings.

3 years agoDocBook: do a little something for shapepar.
Thibaut Cuvelier [Mon, 31 Aug 2020 01:09:16 +0000 (03:09 +0200)]
DocBook: do a little something for shapepar.

3 years agoDocBook: implement theorems.
Thibaut Cuvelier [Mon, 31 Aug 2020 00:39:37 +0000 (02:39 +0200)]
DocBook: implement theorems.

This is a minimal implementation, as DocBook lacks a serious way of encoding all of this. Maybe a <formalpara> could do the trick, but I'd need to find a way to shoehorn a title through the styles (i.e. a first complete tag):

Theorem: Bla bla

<formalpara>
<title>Theorem</title>
<para>Bla bla</para>
</formalpara>

This would also only be a solution for single-paragraph things, as formalpara only allows one paragraph. Or a sidebar, but it's semantically very remote.

3 years agoDocBook: several missing features for Additional.lyx.
Thibaut Cuvelier [Sun, 30 Aug 2020 23:41:09 +0000 (01:41 +0200)]
DocBook: several missing features for Additional.lyx.

Includes: semantic markup (sorry about noun: Additional.lyx uses it to mark menus; there is something better in DocBook, but it looks like the LaTeX equivalent is really for person names), boxes, info layouts.

3 years agoDocBook: implement LyX-Code.
Thibaut Cuvelier [Sun, 30 Aug 2020 23:24:28 +0000 (01:24 +0200)]
DocBook: implement LyX-Code.

This is quite ugly.

3 years agoDocBook: <person> is not valid per se, rather use <personname>.
Thibaut Cuvelier [Sun, 30 Aug 2020 22:50:37 +0000 (00:50 +0200)]
DocBook: <person> is not valid per se, rather use <personname>.

The cleanest solution would still be <person><personname>, but this ought to be enough. Otherwise, that would imply having two tags for some fonts...

3 years agoDocBook: subfigures example is fixed.
Thibaut Cuvelier [Sun, 30 Aug 2020 22:46:49 +0000 (00:46 +0200)]
DocBook: subfigures example is fixed.

Probably thanks to the magic of the previous commits.

3 years agoDocBook: new-line behaviour in bibliographies.
Thibaut Cuvelier [Sun, 30 Aug 2020 22:45:19 +0000 (00:45 +0200)]
DocBook: new-line behaviour in bibliographies.

3 years agoDocBook: support Full Width from Tufte Book.
Thibaut Cuvelier [Sun, 30 Aug 2020 22:43:02 +0000 (00:43 +0200)]
DocBook: support Full Width from Tufte Book.

3 years agoDocBook: fix margin notes.
Thibaut Cuvelier [Sun, 30 Aug 2020 22:42:32 +0000 (00:42 +0200)]
DocBook: fix margin notes.

They were nested twice in <sidebar>. Also fixes a new line issue.

3 years agoDocBook: new lines around formulae.
Thibaut Cuvelier [Sun, 30 Aug 2020 22:21:12 +0000 (00:21 +0200)]
DocBook: new lines around formulae.

3 years agoDocBook: avoid generating fonts for "special cases" like equations.
Thibaut Cuvelier [Sun, 30 Aug 2020 22:18:35 +0000 (00:18 +0200)]
DocBook: avoid generating fonts for "special cases" like equations.

3 years agoDocBook: fix line issues around programlisting.
Thibaut Cuvelier [Sun, 30 Aug 2020 21:56:16 +0000 (23:56 +0200)]
DocBook: fix line issues around programlisting.

3 years agoDocBook: fix font issues when a paragraph has an InsetNewline.
Thibaut Cuvelier [Sun, 30 Aug 2020 21:38:40 +0000 (23:38 +0200)]
DocBook: fix font issues when a paragraph has an InsetNewline.

3 years agoDocBook: fix issue with fonts.
Thibaut Cuvelier [Sun, 30 Aug 2020 21:29:02 +0000 (23:29 +0200)]
DocBook: fix issue with fonts.

3 years agoDocBook: fixes in bibliography (missing new line at the end).
Thibaut Cuvelier [Sun, 30 Aug 2020 20:08:01 +0000 (22:08 +0200)]
DocBook: fixes in bibliography (missing new line at the end).

3 years agoDocBook: fixes in lists.
Thibaut Cuvelier [Sun, 30 Aug 2020 20:05:40 +0000 (22:05 +0200)]
DocBook: fixes in lists.

Actually output something when list item is empty. XMLStream discarded the sequence StartTag/EndTag (nothing in between).

New-line behaviour around term in description lists.

3 years agoDocBook: fix titles in KOMA Script.
Thibaut Cuvelier [Sun, 30 Aug 2020 19:51:40 +0000 (21:51 +0200)]
DocBook: fix titles in KOMA Script.

3 years agoDocBook: bug fixing with wrapper merging.
Thibaut Cuvelier [Sun, 30 Aug 2020 01:30:56 +0000 (03:30 +0200)]
DocBook: bug fixing with wrapper merging.

3 years agoDocBook: bug fixing in AASTeX layout.
Thibaut Cuvelier [Sun, 30 Aug 2020 01:08:55 +0000 (03:08 +0200)]
DocBook: bug fixing in AASTeX layout.

That's mostly generating DocBook tags at an inappropriate place with some metadata, rather than outputting whatever you have at your disposal. Far from satisfying, but good enough for a generic tool (see details in the new TODO). Doesn't trigger assertions. Is valid XML.

3 years agoDocBook: adapt AASTeX for tag types (new-line behaviour).
Thibaut Cuvelier [Sun, 30 Aug 2020 00:34:49 +0000 (02:34 +0200)]
DocBook: adapt AASTeX for tag types (new-line behaviour).

3 years agoDocBook: adapt SimpleCV for tag types (new-line behaviour).
Thibaut Cuvelier [Sun, 30 Aug 2020 00:30:24 +0000 (02:30 +0200)]
DocBook: adapt SimpleCV for tag types (new-line behaviour).

3 years agoDocBook: fix bibliographies (end of <bibliography> and sections).
Thibaut Cuvelier [Sun, 30 Aug 2020 00:30:04 +0000 (02:30 +0200)]
DocBook: fix bibliographies (end of <bibliography> and sections).

3 years agoDocBook: generate <partintro> when required.
Thibaut Cuvelier [Sat, 29 Aug 2020 23:14:44 +0000 (01:14 +0200)]
DocBook: generate <partintro> when required.

3 years agoDocBook: streamline code to handle sections.
Thibaut Cuvelier [Sat, 29 Aug 2020 22:58:50 +0000 (00:58 +0200)]
DocBook: streamline code to handle sections.

3 years agoDocBook: streamline code to handle abstracts.
Thibaut Cuvelier [Sat, 29 Aug 2020 22:35:47 +0000 (00:35 +0200)]
DocBook: streamline code to handle abstracts.

3 years agoDocBook: fix handling of index end-of-range.
Thibaut Cuvelier [Sat, 29 Aug 2020 21:41:28 +0000 (23:41 +0200)]
DocBook: fix handling of index end-of-range.

3 years agoDocBook: fix float tags (was unduly overridden).
Thibaut Cuvelier [Sat, 29 Aug 2020 20:58:23 +0000 (22:58 +0200)]
DocBook: fix float tags (was unduly overridden).

The output was not valid for floats without title.

3 years agoDocBook: improve equation formatting (new lines for block equations).
Thibaut Cuvelier [Sat, 29 Aug 2020 17:05:59 +0000 (19:05 +0200)]
DocBook: improve equation formatting (new lines for block equations).

3 years agoDocBook: fix indentation for section titles (including stars).
Thibaut Cuvelier [Sat, 29 Aug 2020 16:40:31 +0000 (18:40 +0200)]
DocBook: fix indentation for section titles (including stars).

3 years agoDocBook: rewrite makeListEnvironment.
Thibaut Cuvelier [Wed, 26 Aug 2020 22:52:06 +0000 (00:52 +0200)]
DocBook: rewrite makeListEnvironment.

3 years agoDocBook: start splitting environment handling in two, to have proper things for lists.
Thibaut Cuvelier [Sat, 29 Aug 2020 01:03:16 +0000 (03:03 +0200)]
DocBook: start splitting environment handling in two, to have proper things for lists.

3 years agoDocBook: make all make* functions have the same argument order.
Thibaut Cuvelier [Sat, 29 Aug 2020 01:46:30 +0000 (03:46 +0200)]
DocBook: make all make* functions have the same argument order.

3 years agoDocBook: partially remove use of bpit/epit in docbookParagraphs and docbookSimpleAllP...
Thibaut Cuvelier [Sat, 29 Aug 2020 00:55:47 +0000 (02:55 +0200)]
DocBook: partially remove use of bpit/epit in docbookParagraphs and docbookSimpleAllParagraphs.

This will help with the next refactoring to be much cleaner (only work with iterators, don't maintain twice the same information).

3 years agoXML: use the new mechanisms for CR detection with errors.
Thibaut Cuvelier [Sat, 29 Aug 2020 00:43:30 +0000 (02:43 +0200)]
XML: use the new mechanisms for CR detection with errors.

This helps tracking down line problems even in the presence of errors.

3 years agoDocBook: make Paragraph::simpleDocBookOnePar return a list of paragraphs.
Thibaut Cuvelier [Wed, 26 Aug 2020 19:19:38 +0000 (21:19 +0200)]
DocBook: make Paragraph::simpleDocBookOnePar return a list of paragraphs.

Before, it directly wrote to the XMLStream, but it made implementation of new lines tricky. Now, it returns the XML for each sub-paragraph (delimited by new lines) as a string, so that the caller can adopt a more precise behaviour (such as in lists).

3 years agoDocBook: fix compilation issues.
Thibaut Cuvelier [Tue, 25 Aug 2020 00:41:07 +0000 (02:41 +0200)]
DocBook: fix compilation issues.

3 years agoDocBook: Coverity potential problem for precooked bibliographies.
Thibaut Cuvelier [Tue, 25 Aug 2020 00:11:08 +0000 (02:11 +0200)]
DocBook: Coverity potential problem for precooked bibliographies.

3 years agoDocBook: simplify precooked bibliography code.
Thibaut Cuvelier [Tue, 18 Aug 2020 03:46:40 +0000 (05:46 +0200)]
DocBook: simplify precooked bibliography code.

3 years agoDocBook: remove useless includes.
Thibaut Cuvelier [Tue, 18 Aug 2020 03:40:34 +0000 (05:40 +0200)]
DocBook: remove useless includes.