Minor version 2.3.1 released

After more than a year of silence, there is a new txt2tags version out!

It’s a minor release, mostly related to the Style option (–style or %!style). Now you can specify two or more CSS files for an HTML/XHTML page, or modules for LaTeX. Example:

    txt2tags -t html --style main.css --style fancy.css site.t2t

The –css-inside option was also improved to support multiple files and now warns when the CSS file is not found.

    <!-- Included main.css -->
    <STYLE TYPE="text/css">
    ...
    </STYLE>
    
    <!-- CSS include failed for fancy.css -->

A very ancient bug was fixed. It was introduced on version 0.7 (from 2002!) and remained unnoticed until recently. The automatic adding of protocol (like http://) was not working for uppercased URLs.

    $ echo -e "\\nWWW.FOO.COM" | txt2tags-2.3 -o- -H -t html -
    <P>
    <A HREF="WWW.FOO.COM">WWW.FOO.COM</A>
    </P>

    $ echo -e "\\nWWW.FOO.COM" | txt2tags-2.3.1 -o- -H -t html -
    <P>
    <A HREF="http://WWW.FOO.COM">WWW.FOO.COM</A>
    </P>

Since nobody noticed the bug before, this fix is invisible :)

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

Advertisements

2 responses to “Minor version 2.3.1 released

  1. Pingback: Blog do Aurélio (Verde) » Blog Archive » txt2tags completa 5 anos

  2. Pingback: txt2tags completa 5 anos | AURELIO.NET

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