Commit Graph

449 Commits

Author SHA1 Message Date
Daniel James
d61eb528cf Deal with invalid docinfo details. Refs #1281.
Warn when boostbook attributes are used for docbook document types and
don't output them.

[SVN r62470]
2010-06-06 07:23:09 +00:00
Daniel James
b363dedac4 Valid lists. Refs #1281
[SVN r62469]
2010-06-06 07:22:40 +00:00
Daniel James
a2f0b2a06d Avoid extra space around footnotes.
[SVN r62468]
2010-06-06 07:22:08 +00:00
Daniel James
4c7808b4f7 Avoid double <para> in <blockquote>. Refs #1281.
[SVN r62467]
2010-06-06 07:21:38 +00:00
Daniel James
b91264f959 Don't wrap <co> in a <phrase>. Refs #1281.
[SVN r62466]
2010-06-06 07:21:10 +00:00
Daniel James
b572a6291a Fix the DOCTYPE generated by quickbook. Refs #1281
[SVN r62465]
2010-06-06 07:20:37 +00:00
Daniel James
13e2a24f71 Test spaces around inline code. Fixes #1176
This was fixed some time ago, just confirming.

[SVN r62464]
2010-06-06 07:19:46 +00:00
Daniel James
d112cf35e3 Some of the tests from the spirit2 branch.
[SVN r62462]
2010-06-06 07:18:56 +00:00
Daniel James
d2c6ff1175 Fix some inspect errors.
[SVN r61057]
2010-04-05 07:24:27 +00:00
Daniel James
2fe5e11ec2 32 bit unicode characters.
[SVN r60387]
2010-03-09 20:58:01 +00:00
Daniel James
c81003891a Make unicode escapes strictly 4 digits.
[SVN r60147]
2010-03-04 07:17:14 +00:00
Daniel James
3b407222b9 Actually just pass through escaped unicoded characters as entities.
[SVN r60054]
2010-03-01 19:40:30 +00:00
Daniel James
bd7ab855b3 Add a unicode escape sequence.
[SVN r60053]
2010-03-01 19:40:15 +00:00
Daniel James
a126dcf0fd Don't allow '[' in simple_markup. Fixes #1844.
[SVN r59711]
2010-02-16 22:34:09 +00:00
Daniel James
876c08b3e8 Deal with mismatched section tags in templates.
[SVN r59710]
2010-02-16 22:33:49 +00:00
Daniel James
ea57bed3d3 Support UTF-8 BOM if present.
I'm not sure if the utf-16/32 checks are the right thing to do, but as
quickbook only supports utf-8 for now, they'll work okay. Hopefully if
it ever support other encodings this should be offloaded to an
appropriate library.

[SVN r59677]
2010-02-14 13:09:52 +00:00
Daniel James
baec926449 Add to the include test.
[SVN r59544]
2010-02-07 08:56:41 +00:00
Daniel James
34683b6ac9 Change include test to demonstrate quickbook's slightly odd behaviour.
[SVN r59532]
2010-02-06 21:18:15 +00:00
Daniel James
856691d124 Simple include test.
[SVN r59527]
2010-02-06 15:12:55 +00:00
Daniel James
09d287b369 Adjust the block elements in the post-processor.
- 'replaceable' is an inline element.
 - Add some missing block elements.
 - Put the callout elements into order.

[SVN r59526]
2010-02-06 15:12:14 +00:00
Daniel James
538d75710e Add a newline after callout bodies, to avoid confusing the quickbook parser.
[SVN r58040]
2009-11-29 21:06:23 +00:00
Daniel James
df40ab1e37 Merge some non-spirit 2 changes from the spirit 2 branch.
Mostly administrative, but also disable xinclude test as it fails on some
platforms due to the different paths used by boost build, I'm not sure how to
fix it.


[SVN r58034]
2009-11-29 19:16:42 +00:00
Daniel James
84bcb02298 Use qualified ids in tables, and fix a bug generating ids when there isn't a section.
[SVN r56715]
2009-10-11 16:18:04 +00:00
Daniel James
724da46536 Support image attributes. Refs #1157.
[SVN r55917]
2009-08-31 11:38:47 +00:00
Daniel James
7e39c930c2 Add missing table tests.
[SVN r55916]
2009-08-31 11:38:33 +00:00
Daniel James
52a56c1233 Don't use seperators that are in brackets, or are escaped. Refs #2036.
[SVN r55915]
2009-08-31 11:38:20 +00:00
Daniel James
e9e100e881 Table ids. Refs #1194.
[SVN r55913]
2009-08-31 11:37:59 +00:00
Daniel James
3b839f1eb0 Ignore spaces after 'section:' for quickbook 1.5+ Refs #2712
And warn when section id is empty after colon.

[SVN r55911]
2009-08-31 11:37:32 +00:00
Daniel James
b23d6a9de7 In quickbook 1.5 don't mix '..' and whitespace seperators for template arguments. Refs #1174
[SVN r55909]
2009-08-31 11:37:04 +00:00
Daniel James
d2e0488349 Implement static/lexical scoping for 1.5. Refs #2034.
[SVN r55908]
2009-08-31 11:36:47 +00:00
Daniel James
0ef306d485 Make sure that a template expansion ends with a ']'.
{{{
[template foo 1]
[fool]
}}}

was generating `1[fool]` - the template would be expanded but then when it
didn't match the `]` it would fail and just get copied to the output. This
change checks for `]` before expanding the template. So it now generates
`[fool]` which is an improvement.

I'm not including a version switch as I see this as a plain bug fix - I can't
imagine this change ever being anything but beneficial.

[SVN r54816]
2009-07-08 21:41:00 +00:00
Daniel James
a087316841 Teletype source mode. Refs #1202.
[SVN r54815]
2009-07-08 21:40:46 +00:00
Daniel James
7c7c1a1765 Add a couple of tests for quickbook 1.4 behaviour to try to preserve it.
[SVN r54812]
2009-07-08 21:40:14 +00:00
Daniel James
177b47c57f Use the correct source type for snippets.
[SVN r53020]
2009-05-15 06:12:59 +00:00
Daniel James
d86a2fe747 Use our own escape character parser.
We're currently using the spirit escaped character parser. This is a
strict C parser and causes parse errors for code that we probably should
accept, such as any hexadecimal encoded characters with a value greater
than the maximum value of the current platform's 'char'.  This is \x7F
on some platforms so it rejects '\x80' upwards. As well as rejecting
characters that might be valid, it also means that quickbook will act
differently on different platforms.

In python strings, '\xaaa' is equivalent to '\xaa' + 'a', but the spirit
parser interprets this as a character with value '0xaaa'. So we probably
should accept these.

I also think we should be liberal about what we accept. IMO it isn't our
job to enforce correct C++/python, just to create a reasonable
rendering of our input. So rather than write a parser which understands
the various types of escapes, I just wrote one that ignores any
character following a backslash.

Refs #2860.

[SVN r51949]
2009-03-24 08:34:09 +00:00
Daniel James
43504cb0b4 Revert r51403.
[SVN r51883]
2009-03-21 15:48:55 +00:00
Daniel James
630f5f1e9f Fix syntax error in tests.
There was a failing test caused by a syntax error in a test. The
solution is probably to improve the syntax in a new version and issue a
warning in older versions.

[SVN r51801]
2009-03-16 20:19:00 +00:00
Daniel James
003d80629b Accept space between 'section:' and the section id.
Ref #2712.

[SVN r51403]
2009-02-22 23:48:51 +00:00
Daniel James
84adcfe135 Generate slightly more valid boostbook.
For document types other than library:
* Don't generate name or dirname for document types.
* Put title before document info.

Ref #2771

[SVN r51402]
2009-02-22 23:48:37 +00:00
Daniel James
ae54194c43 Since I accidently added a quickbook fail tests to the Jamfile in the last checkin, I might as well add them.
[SVN r50211]
2008-12-08 23:20:26 +00:00
Daniel James
5d51d43801 Hard fail on quickbook post process errors.
[SVN r50210]
2008-12-08 23:14:23 +00:00
Daniel James
a6b8f8aac4 Fail on a mismatched '' in the python and c++ syntax highlighters. And then ignore the rest of the code block to avoid further errors and warnings.
[SVN r50207]
2008-12-08 21:51:56 +00:00
Daniel James
f677418c29 Use new include paths for classic spirit in quickbook text_diff utility.
[SVN r50193]
2008-12-08 16:17:13 +00:00
Daniel James
0c651ef0e1 Fix processing of unmatched escape characters in code - and issue a warning for unexpected characters.
[SVN r50175]
2008-12-07 12:37:07 +00:00
John Maddock
6860c334ab Added dependency to the test file.
[SVN r50109]
2008-12-04 10:14:19 +00:00
Daniel James
313bd8fcc6 Keep a count of errors in quickbook, and return an error code when appropriate. Refs #1399.
[SVN r50091]
2008-12-03 19:14:42 +00:00
John Maddock
be7b4d637e Added quickbook-fail-test rule and two tests that make use of it: note that these currently fail.
[SVN r50084]
2008-12-03 09:42:52 +00:00
John Maddock
30eeeb0952 Fix Jamfile by adding <preserve-test-targets>on to test requirements.
[SVN r50068]
2008-12-02 13:13:57 +00:00
Joel de Guzman
c2c1a8d55b tweak for the failure tests
[SVN r48158]
2008-08-15 12:17:28 +00:00
Douglas Gregor
e327a65ab5 Add mime-type and eol-style properties as needed
[SVN r46445]
2008-06-17 13:54:46 +00:00
Joel de Guzman
e3d132e111 - doc updates
- rudementary template debugging
- template bug! added in test

[SVN r45598]
2008-05-21 06:29:33 +00:00
Joel de Guzman
a8797c9f8f updated tests
[SVN r45594]
2008-05-21 04:01:31 +00:00
Joel de Guzman
962d30ec9e Fix Ticket Ticket #1235
(http://svn.boost.org/trac/boost/ticket/1235)

[SVN r39291]
2007-09-15 00:19:44 +00:00
Joel de Guzman
e6f6fd357c fix line endings
[SVN r38547]
2007-08-09 02:07:16 +00:00
Joel de Guzman
5d627698cb bugfix: for code imports when we have an empty space (blank) immediately after the /*` markup.
[SVN r38491]
2007-08-07 01:51:05 +00:00
Joel de Guzman
e78baa608f code import bug fix: inhibit generation of empty code snips.
[SVN r38347]
2007-08-01 23:46:50 +00:00
Joel de Guzman
7dd1716599 fix variablelist bug not accepting paragraphs
[SVN r38316]
2007-07-31 01:46:12 +00:00
Joel de Guzman
eb95fcf480 - fix bug in paragraphs inside tables where there's an empty line with some space
- adjusted the tests to new code changes
- doc updates


[SVN r38264]
2007-07-21 04:56:36 +00:00
Joel de Guzman
8ce093b190 update gold tests
[SVN r38263]
2007-07-20 23:31:36 +00:00
Joel de Guzman
4a127206d9 make all characters significant in marked-up comments in imported code (previously, initial white spaces are ignored).
[SVN r38133]
2007-07-03 14:05:00 +00:00
Joel de Guzman
a150aa8a9c Added ignored import code feature
[SVN r37153]
2007-03-07 01:29:25 +00:00
Joel de Guzman
ea2e18c0b4 callouts refinement
[SVN r37112]
2007-02-28 10:20:50 +00:00
Joel de Guzman
a8f83194fc * Simple markups can now span a whole block.
* __blurbs__, __admonitions__ and table cells (see __tables__) may now
  contain paragraphs.
* `\n` and `[br]` are now deprecated.


[SVN r37107]
2007-02-27 15:24:20 +00:00
Joel de Guzman
fd11e3edb8 added callouts
[SVN r37025]
2007-02-21 00:48:30 +00:00
Joel de Guzman
16fe1f3638 import facility updates
[SVN r36476]
2006-12-21 04:55:45 +00:00
Joel de Guzman
4819a6657e first shot at code "import". more tweaks to come.
[SVN r36467]
2006-12-20 15:41:53 +00:00
Joel de Guzman
0f41df252c fix postprocessor self-closed tag processing
[SVN r36459]
2006-12-19 13:05:08 +00:00
Joel de Guzman
407de2250d updates
[SVN r36182]
2006-11-26 23:39:48 +00:00
Joel de Guzman
5cb7a9ebce Comments are passed through to XML
[SVN r36058]
2006-11-16 11:57:45 +00:00
Joel de Guzman
d9f596cabc Escape bug fix
[SVN r36054]
2006-11-16 10:52:13 +00:00
Joel de Guzman
3b75f88a67 title bug fix
[SVN r35573]
2006-10-12 09:28:14 +00:00
Gennaro Prota
57b1d75952 fixed typos reported in http://bugs.debian.org/378016
[SVN r34631]
2006-07-20 13:29:26 +00:00
Joel de Guzman
84a9414f99 infrastructure changes: template_stack(s)
[SVN r34257]
2006-06-09 03:16:04 +00:00
Joel de Guzman
ec8c5baa27 ready for prime time
[SVN r34173]
2006-06-05 01:09:56 +00:00
Joel de Guzman
c019d918ef *** empty log message ***
[SVN r34150]
2006-06-03 04:27:08 +00:00
Joel de Guzman
761943e1ab more tests from john's experiment
[SVN r34141]
2006-06-02 17:14:10 +00:00
Joel de Guzman
2d67d18740 Fix post processing:
1) xml escapes don't print newlines anymore
2) reversed the logic of is_flow_tag by checking against a set of block_tags instead of phrase_tags. that way, unknown tags are always considered as flow tags.


[SVN r34139]
2006-06-02 16:48:36 +00:00
Joel de Guzman
af7a7212a2 Templates!!! :)
[SVN r34054]
2006-05-22 09:00:17 +00:00
Joel de Guzman
d9174fe68b fix </>: empty end tag is not valid XML.
[SVN r32574]
2006-02-04 23:39:17 +00:00
Joel de Guzman
6d3e037a59 escaped xml post processing fix + replaceable markup
[SVN r32523]
2006-02-03 09:42:17 +00:00
Joel de Guzman
d26823247e escape regression test
[SVN r32499]
2006-02-01 17:17:17 +00:00
João Abecasis
cacbb35ffc adding smaller self-contained tests (test1 renamed to quickbook-manual).
[SVN r32437]
2006-01-27 14:03:53 +00:00
João Abecasis
42c7964189 restructuring
[SVN r32436]
2006-01-27 14:02:07 +00:00
Joel de Guzman
24168e8943 fix nbsp handling
[SVN r32355]
2006-01-19 06:11:02 +00:00
Joel de Guzman
55154fd1f0 Allow phrase markups in section titles + misc maintenance.
[SVN r31366]
2005-10-18 03:53:28 +00:00
Joel de Guzman
dcbc6afce1 Allow phrase markups in section titles + misc maintenance.
[SVN r31365]
2005-10-18 03:51:39 +00:00
João Abecasis
4b00f227ba synchronize test to recent changes in the code.
[SVN r31355]
2005-10-16 23:42:22 +00:00
Joel de Guzman
9ef063b9bf allow block tags to terminate a paragraph
[SVN r31161]
2005-10-02 02:35:14 +00:00
Joel de Guzman
a63c967930 Doc sync to Joao's recent changes
[SVN r30968]
2005-09-14 02:20:06 +00:00
Joel de Guzman
608ec47faf Proper quickbook versioning + postprocessor cleanup
[SVN r30915]
2005-09-12 03:18:45 +00:00
Joel de Guzman
f0ec0ca933 Quotes + bugfix for correct handling of spaces after tags in the post-processor.
[SVN r30909]
2005-09-11 17:10:15 +00:00
Joel de Guzman
5e5feebc5c Allow versioning. Now Qbk is at version 1.3
[SVN r30903]
2005-09-11 05:23:03 +00:00
Joel de Guzman
9260466153 some cleanup + disabled __FILENAME_ macro on debug mode
[SVN r30902]
2005-09-11 04:27:57 +00:00
Joel de Guzman
7a5478db38 some cleanup + disabled __FILENAME_ macro on debug mode
[SVN r30901]
2005-09-11 04:22:15 +00:00
Joel de Guzman
e99c6075de --debug mode for quickbook developers
[SVN r30890]
2005-09-09 16:27:27 +00:00
João Abecasis
303069a71b resolve conflict between test types defined for QuickBook and types for
production.
make subtests build in the same subdirectory.


[SVN r30878]
2005-09-08 19:37:57 +00:00
João Abecasis
9350d67090 change file extension .qbk -> .quickbook.
make quickbook-testing.jam independent of quickbook.jam toolset.
compile text_diff and quickbook only once when there are multiple tests.


[SVN r30876]
2005-09-08 14:09:23 +00:00
João Abecasis
5f0d81886e add missing import.
remove bogus variables.


[SVN r30868]
2005-09-07 22:34:52 +00:00
João Abecasis
8ea2b63ef3 initial import of regression testing mechanism for quickbook.
(Note: has known annoyances and limitations)


[SVN r30806]
2005-09-05 01:50:41 +00:00