Changeset 131


Ignore:
Timestamp:
Jun 2, 2004, 8:05:05 PM (17 years ago)
Author:
kake
Message:

0.12 - Indentation causes <pre>.

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

Legend:

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

    r128 r131  
     10.12    2 June 2004
     2        Indentation now causes <pre>, as per the UseMod spec.
     3
    140.11    20 November 2003
    25        Added (experimental, advanced) "munge_node_name" parameter.
  • cgi-wiki-formatter-usemod/trunk/MANIFEST

    r128 r131  
    1313t/twf-bug.t
    1414t/usemod.t
     15META.yml                                 Module meta-data (added by MakeMaker)
  • cgi-wiki-formatter-usemod/trunk/lib/CGI/Wiki/Formatter/UseMod.pm

    r130 r131  
    44
    55use vars qw( $VERSION @_links_found );
    6 $VERSION = '0.11';
     6$VERSION = '0.12';
    77
    88use URI::Escape;
     
    241241                         ordered         => qr/^\s*([\d]+)\.\s*/,
    242242                         unordered       => qr/^\s*\*\s*/,
    243                          definition      => qr/^:\s*/
     243                         definition      => qr/^:\s*/,
     244                         pre             => qr/^\s+/
    244245                                    },
    245246        definition               => [ "<dl>\n", "</dl>\n", "<dt><dd>", "\n" ],
     247        pre                      => [ "<pre>\n", "</pre>\n", "", "\n" ],
    246248        # we don't label unordered lists as "not indented" so we can nest them.
    247249        indented   => {
    248250                        definition => 0,
    249                         ordered    => 0
     251                        ordered    => 0,
     252                        pre        => 0,
    250253                       },
    251         blockorder => [ qw( header line ordered unordered code definition paragraph )],
     254        blockorder => [ qw( header line ordered unordered code definition pre paragraph )],
    252255        nests      => { map { $_ => 1} qw( ordered unordered ) },
    253256        link                     => sub {
     
    430433=head1 COPYRIGHT
    431434
    432      Copyright (C) 2003 Kake Pugh.  All Rights Reserved.
     435     Copyright (C) 2003-2004 Kake Pugh.  All Rights Reserved.
    433436
    434437This module is free software; you can redistribute it and/or modify it
     
    444447
    445448This doesn't yet support all of UseMod's formatting features and
    446 options, by any means.  This really truly I<is> a 0.0* release. Please
     449options, by any means.  This really truly I<is> a 0.* release. Please
    447450send bug reports, omissions, patches, and stuff, to me at
    448451C<kake@earth.li>.
  • cgi-wiki-formatter-usemod/trunk/t/usemod.t

    r111 r131  
    4444like( $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>|,
    4545      "leading : made into <dl>" );
    46 SKIP: {
    47         skip "TODO", 1;
    48         like( $html, qr|<pre>\n pig\n pig\n</pre>|,
    49               "leading space makes <pre>" );
    50       }
     46like( $html, qr|<pre>\npig\npig\n</pre>|,
     47      "leading space makes <pre>" );
    5148
    5249my @links = $formatter->find_internal_links($wikitext);
Note: See TracChangeset for help on using the changeset viewer.