BenEngbers / asciidoc

Automatically exported from code.google.com/p/asciidoc
GNU General Public License v2.0
0 stars 0 forks source link

Patch for two line titles contain east asian characters #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Example AsciiDoc source (with line number, contain Chinese characters):
1: 这是一个测试
2: ------------

If you want to generate document with the code above, currently AsciiDoc 
(version 8.6.3) will produce error like this:
asciidoc: ERROR: alist.txt: line 1: [blockdef-listing] missing closing delimiter

AsciiDoc mistakenly treat line 2 (the '-') as delimited block when in lex 
stage. Because the length of line 1 is 6, however its column width is 12. 
AsciiDoc just compare the two lines' length, actually should compare their 
column width.

So I submit this patch, reference to reStructuredText's code, hope it helps.

Original issue reported on code.google.com by gaochang...@gmail.com on 1 Feb 2011 at 8:16

Attachments: