Changeset 133


Ignore:
Timestamp:
Jun 4, 2004, 12:43:30 PM (17 years ago)
Author:
kake
Message:

Improvements to indented text.

Location:
cgi-wiki-formatter-usemod/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cgi-wiki-formatter-usemod/trunk/Changes

    r131 r133  
     10.13    4 June 2004
     2        Leading ':' (which creates a definition list for an indent effect)
     3          now has better HTML, plus adds a leading   to allow blank
     4          lines in the indented text.
     5
    160.12    2 June 2004
    27        Indentation now causes <pre>, as per the UseMod spec.
  • cgi-wiki-formatter-usemod/trunk/lib/CGI/Wiki/Formatter/UseMod.pm

    r131 r133  
    44
    55use vars qw( $VERSION @_links_found );
    6 $VERSION = '0.12';
     6$VERSION = '0.13';
    77
    88use URI::Escape;
     
    244244                         pre             => qr/^\s+/
    245245                                    },
    246         definition               => [ "<dl>\n", "</dl>\n", "<dt><dd>", "\n" ],
     246        definition               => [ "<dl>\n", "</dl>\n", "<dd>&nbsp;", "</dd>\n" ],
    247247        pre                      => [ "<pre>\n", "</pre>\n", "", "\n" ],
    248248        # we don't label unordered lists as "not indented" so we can nest them.
  • cgi-wiki-formatter-usemod/trunk/t/usemod.t

    r131 r133  
    4242      "...links work in headers" );
    4343like( $html, qr|<h4>Header with an = in</h4>|, "...headers may contain =" );
    44 like( $html, qr|<dl>\s*<dt><dd>This should be a\s*<dt><dd>definition list with data\s*<dt><dd>but no terms\s*</dl>|,
     44like( $html, qr|<dl>\s*<dd>&nbsp;This should be a</dd>\s*<dd>&nbsp;definition list with data</dd>\s*<dd>&nbsp;but no terms</dd>\s*</dl>|,
    4545      "leading : made into <dl>" );
    4646like( $html, qr|<pre>\npig\npig\n</pre>|,
Note: See TracChangeset for help on using the changeset viewer.