Hi Tong
Tong Sun wrote:
> Package: asciidoc
> Version: 8.2.5-1
> Severity: wishlist
>
> Hi Stuart,
>
> I hope that the rule for BlockTitle can be more strict.
>
> Currently any line beginning with a period will be a BlockTitle. But
> this is not very convenient if a line begins with ellipsis:
>
> $ $echo '...line begins with ellipsis. . .\nnext line' | tee /dev/tty | asciidoc -s - 2>/dev/null
> ...line begins with ellipsis. . .
> next line
> <div class="para"><div class="title">..line begins with ellipsis. . .</div><p>next line</p></div>
>
> I hope that the BlockTitle element is limited to "a single line
> beginning with a period immediately followed by a (capital) letter".
> Well, at least what follows should not be '.' or space.
>
> What do you think?
You can do this by overriding the blocktitle entry in the asciidoc.conf
[titles] section e.g. in ~/.asciidoc/asciidoc.conf. I think that making
the above behavior the default would be to restrictive, it would also
break backward compatibility -- the following re would allow block
titles to begin with two (but not three) periods and gets round the
ellipsis confusion:
blocktitle=^\.(?P<title>([^.\s].*)|(\.[^.\s].*))$
I'll change to this in the next release.
Currently the workaround to avoid situations like this altogether is to
move the ellipsis to the end of the preceding line.
>
> Thanks
>
> Tong
>
> -- System Information:
> Debian Release: 4.0
> APT prefers testing
> APT policy: (600, 'testing'), (50, 'unstable')
> Architecture: i386 (i686)
> Shell: /bin/sh linked to /bin/bash
> Kernel: Linux 2.6.23-grml
> Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
>
> Versions of packages asciidoc depends on:
> ii python 2.4.4-2 An interactive high-level object-o
>
> Versions of packages asciidoc recommends:
> pn docbook-utils <none> (no description available)
> pn fop <none> (no description available)
> ii source-highlight 2.4-5 convert source code to syntax high
> pn vim-addon-manager <none> (no description available)
> pn xmlto <none> (no description available)
>
> -- no debconf information
>
Cheers, Stuart
--
Stuart Rackham
_______________________________________________
asciidoc-discuss mailing list
asciidoc-discuss@...
http://lists.metaperl.com/cgi-bin/mailman/listinfo/asciidoc-discuss