Minor version 2.3.2 released

Summary: New commented block mark and several bug fixes.

This release introduces a new mark for commented blocks: %%%. The syntax is similar to the Verbatim and Raw blocks, using the same mark to open and close the block. Kudos to Leo Rosa for sending the patch!

    This is a paragraph.

    %%%
    This is a commented block.
    Remember that the %%% must be at the line
    beginning with no leading spaces.
    %%%

    Another paragraph.

The txt2tags test suite was extended from 120 to 144 tests! Those new checks revealed very catchy bugs and some strange behavior. Even fatal errors raised from uncommon markup on the source file.

Now everything is fine. Oh if I had implemented that test suite thing since the beginning…

Vanished Bugs

Removed useless <P></P> after Table followed by blank line

    $ echo -e "\n| Table\n" | txt2tags-2.3 -t html -H -o- -i-
    <TABLE CELLPADDING="4">
    <TR>
    <TD>Table</TD>
    </TR>
    </TABLE>
    
    <P></P>
    
    $ echo -e "\n| Table\n" | txt2tags-2.3.2 -t html -H -o- -i-
    <TABLE CELLPADDING="4">
    <TR>
    <TD>Table</TD>
    </TR>
    </TABLE>

Raw doesn’t close Quote anymore

    $ echo -e '\n\tQuote\n""" Raw' | txt2tags-2.3 -t html -H -o- -i-
            <BLOCKQUOTE>
            Quote
            </BLOCKQUOTE>
    Raw
    
    $ echo -e '\n\tQuote\n""" Raw' | txt2tags-2.3.2 -t html -H -o- -i-
            <BLOCKQUOTE>
            Quote
    Raw
            </BLOCKQUOTE>

Bugfix: Macro at line beginning now closes Quote

    $ echo -e "\n\tQuote\n%%date" | txt2tags-2.3 -t html -H -o- -i-
            <BLOCKQUOTE>
            Quote
            20060809
            </BLOCKQUOTE>
    
    $ echo -e "\n\tQuote\n%%date" | txt2tags-2.3.2 -t html -H -o- -i-
            <BLOCKQUOTE>
            Quote
            </BLOCKQUOTE>
    <P>
    20060809
    </P>

Bugfix: Verbatim and Raw areas are now mutually exclusive

    $ echo -e '\n```\n"""\nRaw in Verb\n"""\n```' | txt2tags-2.3 -t html -H -o- -i-
    <PRE>
    </PRE>
    Raw in Verb
    <PRE>
    </PRE>
    
    $ echo -e '\n```\n"""\nRaw in Verb\n"""\n```' | txt2tags-2.3.2 -t html -H -o- -i-
    <PRE>
      """
      Raw in Verb
      """
    </PRE>

Bugfix: Fatal error on macro after table

    $ echo -e "\n| x |\n%%date" | txt2tags-2.3 -t html -H -o- -i-
    Sorry! Txt2tags aborted by an unknown error.
    
    $ echo -e "\n| x |\n%%date" | txt2tags-2.3.2 -t html -H -o- -i-
    <TABLE CELLPADDING="4" BORDER="1">
    <TR>
    <TD>x</TD>
    </TR>
    </TABLE>
    
    <P>
    20060809
    </P>

Bugfix: Fatal error on table inside deflist

    $ echo -e "\n: | Table inside List Term" | txt2tags-2.3 -t html -H -o- -i-
    Sorry! Txt2tags aborted by an unknown error.
    
    $ echo -e "\n: | Table inside List Term" | txt2tags-2.3.2 -t html -H -o- -i-
    <DL>
    <DT>| Table inside List Term</DT><DD>
    </DL>

Bugfix: Fatal error on empty table

    $ echo -e "\n| |" | txt2tags-2.3 -t html -H -o- -i-
    Sorry! Txt2tags aborted by an unknown error.
    
    $ echo -e "\n| |" | txt2tags-2.3.2 -t html -H -o- -i-
    <TABLE CELLPADDING="4" BORDER="1">
    <TR>
    <TD></TD>
    </TR>
    </TABLE>

Get the new code at the download page, under the Minor Releases section.

Advertisements

One response to “Minor version 2.3.2 released

  1. hey! great idea this one of commented blocks…
    i was getting tired to do X,Ys/^/%/ in vim… :-D

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s