problem with multi-paragraph list items - regression from 8.2.1 to 8.2.5

View: New views
2 Messages — Rating Filter:   Alert me  

problem with multi-paragraph list items - regression from 8.2.1 to 8.2.5

by Toby White-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have two versions of asciidoc installed on two computers, and
I've just discovered an inconsistency between them; consider
the fragment of asciidoc below (which uses the source-highlight
filter)

---

1. This is the first paragraph of a multi-paragraph list item
+
[sh]
source~~~~~~~~~~~~~~~~~~~~~~~~
 > echo $SHELL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

---

This fragment works fine with version 8.2.1, and gives the
expected output.

However, with version 8.2.5, I get an error like so:

tow@host:~$ asciidoc test.txt
WARNING: test.txt: line 3: missing [paradef-default] sh-style entry
FAILED: /home/tow/test.txt: line 6: missing filter attribute:
code-filter.py -b {basebackend} -l {language}

I've discovered that if I use the *old* (8.2.1) version of /etc/asciidoc as
the configuration for 8.2.5, then I get the expected result again.

Toby

_______________________________________________
asciidoc-discuss mailing list
asciidoc-discuss@...
http://lists.metaperl.com/cgi-bin/mailman/listinfo/asciidoc-discuss

Re: problem with multi-paragraph list items - regression from 8.2.1 to 8.2.5

by Stuart Rackham :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Toby White wrote:

> I have two versions of asciidoc installed on two computers, and
> I've just discovered an inconsistency between them; consider
> the fragment of asciidoc below (which uses the source-highlight
> filter)
>
> ---
>
> 1. This is the first paragraph of a multi-paragraph list item
> +
> [sh]
> source~~~~~~~~~~~~~~~~~~~~~~~~
>  > echo $SHELL
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The trailing delimiter must be the same as the leading delimiter i.e.

[sh]
source~~~~~~~~~~~~~~~~~~~~~~~~
 > echo $SHELL
source~~~~~~~~~~~~~~~~~~~~~~~~

This backward incompatibility occurred at 8.2.2, I can't remember why
this was done.


>
> ---
>
> This fragment works fine with version 8.2.1, and gives the
> expected output.
>
> However, with version 8.2.5, I get an error like so:
>
> tow@host:~$ asciidoc test.txt
> WARNING: test.txt: line 3: missing [paradef-default] sh-style entry
> FAILED: /home/tow/test.txt: line 6: missing filter attribute:
> code-filter.py -b {basebackend} -l {language}
>
> I've discovered that if I use the *old* (8.2.1) version of /etc/asciidoc as
> the configuration for 8.2.5, then I get the expected result again.
>
> Toby
>
> _______________________________________________
> asciidoc-discuss mailing list
> asciidoc-discuss@...
> http://lists.metaperl.com/cgi-bin/mailman/listinfo/asciidoc-discuss
>

Cheers, Stuart
--
Stuart Rackham
_______________________________________________
asciidoc-discuss mailing list
asciidoc-discuss@...
http://lists.metaperl.com/cgi-bin/mailman/listinfo/asciidoc-discuss