Commit Graph

155 Commits

Author SHA1 Message Date
Daniel James
bd8c0894b0 Place section anchors inside the section title.
Generates better html.

[SVN r68559]
2011-01-30 10:52:35 +00:00
Daniel James
aea4163f6c Use a single symbol table for all elements.
[SVN r67855]
2011-01-09 12:01:15 +00:00
Daniel James
d626f30cd5 Allow include, import and xinclude in conditional macros.
[SVN r67637]
2011-01-03 22:15:41 +00:00
Daniel James
3e075a122b Make the newline after block markup optional.
[SVN r67636]
2011-01-03 22:13:54 +00:00
Daniel James
29c97dc3f3 Add an option to turn off all quickbook actions, and use it to implement conditional phrase.
[SVN r67635]
2011-01-03 22:12:58 +00:00
Daniel James
fff43d6853 Make the scoped parser more generic and use it for conditional phrases.
[SVN r67632]
2011-01-03 22:09:10 +00:00
Daniel James
c51e3add8f Smarter anchor support.
[SVN r67324]
2010-12-19 13:26:55 +00:00
Daniel James
d1f14e2aed Implement lang attribute in quickbook/boostbook.
[SVN r67090]
2010-12-07 20:44:23 +00:00
Daniel James
d55ea7699b Use a different feature name for quickbook-define in the tests.
Something was going wrong, this is the easiest fix.

[SVN r67089]
2010-12-07 20:42:59 +00:00
Daniel James
34d049361b Support more quickbook options in boost build.
[SVN r66431]
2010-11-07 14:45:43 +00:00
Daniel James
ed9733296b Some extra quickbook table tests.
[SVN r66430]
2010-11-07 14:45:01 +00:00
Daniel James
6c3f05ca9d Restore \n support to quickbook.
[SVN r66292]
2010-10-30 23:16:21 +00:00
Daniel James
53fec6d3f1 Nested blocks in document info comments.
[SVN r65448]
2010-09-18 17:56:15 +00:00
Daniel James
17adae094e More link tests.
[SVN r65422]
2010-09-14 20:50:51 +00:00
Daniel James
d165ef3a67 An extra test for lists.
[SVN r65421]
2010-09-14 20:47:16 +00:00
Daniel James
0544468ad9 Don't match words that start with tip, note etc.
[SVN r65419]
2010-09-14 20:45:47 +00:00
Daniel James
bd0b01578b Add biblioid support to quickbook.
[SVN r65370]
2010-09-09 22:45:39 +00:00
Daniel James
a74d3d4979 Fix a bug in nested template support.
[SVN r65360]
2010-09-09 00:11:35 +00:00
Daniel James
d67b0e3931 Fix argument position in break_arguments.
And some small code_snippet improvements.

[SVN r65280]
2010-09-05 08:14:16 +00:00
Daniel James
810642f159 Restore 1.43 style document fields.
Only xml encoding the fields, and supporting escapes with a 1.6 version
switch.

[SVN r65113]
2010-08-29 21:11:02 +00:00
Daniel James
c2b5212d49 Only stack macros when necessary.
Pushing and popping symbol containers is pretty expensive, so try to do
it less.

[SVN r65102]
2010-08-29 11:18:51 +00:00
Daniel James
aafa5d83d2 Move the source files into a source directory.
[SVN r65030]
2010-08-26 20:56:37 +00:00
Daniel James
c65adc378a Don't generate empty document info tags.
[SVN r65011]
2010-08-26 08:04:08 +00:00
Daniel James
8eeff84ac5 Don't escape docinfo fields for quickbook <= 1.2
[SVN r65005]
2010-08-25 20:28:15 +00:00
Daniel James
23d910d7a3 Fix xml escaping for the license in quickbook 1.2 and less.
[SVN r64990]
2010-08-24 23:12:10 +00:00
Daniel James
351442d050 Escapes in doc info fields.
[SVN r64988]
2010-08-24 19:47:46 +00:00
Daniel James
1dc08fd09c Nested code snippets.
[SVN r64976]
2010-08-23 21:51:53 +00:00
Daniel James
4b41d22c87 Merge multiple listitems in varlistentry.
Docbook only allows a single `listitem` in a `varlistentry` so combine
multiple items into a single item.

[SVN r64831]
2010-08-15 16:48:10 +00:00
Daniel James
aa69438440 Overhaul some of the template code.
* Store the location along with the contents of the template body, so
  the location should usually be correct now. Exceptions are code
  snippets, because they get rewritten, and the extra newlines added to
  block template.
* Store if a template is a block template at the time of creation. Using
  spirit to decide, rather than handwritten C++.
* Fix callout list markup.
* Fix the `skip_initial_spaces` stuff in `block.hpp`. This never really
  worked before. No longer have to skip spaces in `parse_template` in
  `actions.cpp`.

[SVN r64830]
2010-08-15 16:47:21 +00:00
Daniel James
e641698536 Better parser for code blocks.
* A line containing a comment with no identation will now end a code
  block.
* Code blocks no longer need to be followed by a blank line.

[SVN r64829]
2010-08-15 16:46:18 +00:00
Daniel James
7101c28eba Don't put nested lists inside a list item's paragraph.
[SVN r64828]
2010-08-15 16:45:27 +00:00
Daniel James
b622d1d6ee Trim space after element ids.
[SVN r64827]
2010-08-15 16:44:33 +00:00
Daniel James
6b6aad78a6 Ids for headings.
[SVN r64826]
2010-08-15 16:43:40 +00:00
Daniel James
8fe8e33699 Fix command line macros in quickbook.
[SVN r64825]
2010-08-15 16:41:54 +00:00
Daniel James
54938aef15 Restore the invalid doc info attributes.
Removing them breaks the release notes, there's still a warning that
they're invalid. Refs #1281

[SVN r63896]
2010-07-11 23:15:18 +00:00
Daniel James
230a211767 Check the quickbook version is valid.
[SVN r63814]
2010-07-10 15:03:45 +00:00
Daniel James
c6d769cf0d Make repeated quickbook image attributes a warning rather than an error.
[SVN r63813]
2010-07-10 15:03:07 +00:00
Daniel James
1bc916f41f Generate different ids when reusing code snippets.
Generates the ids during template expansion instead of when parsing the
code snippet - so that different ids are used for different exapnsions.
Refs #4416

[SVN r63809]
2010-07-10 11:24:54 +00:00
Daniel James
26030cc220 Copy tests from spirit 2 branch.
The only remaining difference is the invalid output for callouts.

[SVN r63736]
2010-07-08 07:14:35 +00:00
Daniel James
f3a52f99ee Fix duplicate image attribute detection.
[SVN r63735]
2010-07-08 07:14:03 +00:00
Daniel James
9d9721f79e Fix xml encoding in a few places.
[SVN r63734]
2010-07-08 07:13:26 +00:00
Daniel James
db2cfd0d79 Fix documentation info handling in included files. Refs #3907.
[SVN r63733]
2010-07-08 07:12:43 +00:00
Daniel James
3127d2fd1b Fix identifier generation for headings. Refs #1436.
[SVN r63732]
2010-07-08 07:11:58 +00:00
Daniel James
93fb714dac Backport improved paragraphs from spirit 2 version
Templates are no longer expanded inside paragraphs, although callout
lists still are. Refs #4302.

[SVN r63713]
2010-07-06 23:10:10 +00:00
Daniel James
3dfcf5ef14 Don't output empty paragraphs.
[SVN r63621]
2010-07-04 18:52:05 +00:00
Daniel James
5dd58732a1 Test some empty templates.
[SVN r63612]
2010-07-04 16:56:28 +00:00
Daniel James
c8cdcd075e Don't match empty paragraphs.
[SVN r63611]
2010-07-04 16:55:58 +00:00
Daniel James
e3e2018a45 Allow empty document bodies.
[SVN r63610]
2010-07-04 16:55:24 +00:00
Daniel James
a47a09e259 Clear template_info before parsing a template.
Sometimes template_info contains values from a previous failed parse. I
think this makes the last change unnecessary, but I'm going to leave it
in as I feel like it improved the grammar.

[SVN r63609]
2010-07-04 16:54:44 +00:00
Daniel James
1cde9f5cfe Only store template name after correct match.
Fixes a bug where a failed template expansion would leave the template
name in template_info.

[SVN r63608]
2010-07-04 16:53:54 +00:00