preprocessing it.
* Fix smiley plugin to support smileys at the very beginning or end of
the content.
- return IkiWiki::preprocess($params{page}, $params{destpage}, $ret);
+ return IkiWiki::preprocess($params{page}, $params{destpage},
+ IkiWiki::filter($params{page}, $ret));
} # }}}
package IkiWiki::PageSpec;
} # }}}
package IkiWiki::PageSpec;
sub filter (@) { #{{{
my %params=@_;
sub filter (@) { #{{{
my %params=@_;
- $params{content} =~ s{(?<=\s)(\\?)$smiley_regexp(?=\s)}{
+ $params{content} =~ s{(?:^|(?<=\s))(\\?)$smiley_regexp(?:(?=\s)|$)}{
$1 ? $2 : htmllink($params{page}, $params{page}, $smileys{$2}, 0, 0, $2)
}egs;
$1 ? $2 : htmllink($params{page}, $params{page}, $smileys{$2}, 0, 0, $2)
}egs;
return $params{content};
} # }}}
return $params{content};
} # }}}
}
return IkiWiki::preprocess($params{page}, $params{destpage},
}
return IkiWiki::preprocess($params{page}, $params{destpage},
+ IkiWiki::filter($params{page},
+ $template->output));
# Preprocess the text to expand any preprocessor directives
# embedded inside it.
# Preprocess the text to expand any preprocessor directives
# embedded inside it.
- $params{text}=IkiWiki::preprocess($params{page}, $params{destpage}, $params{text});
+ $params{text}=IkiWiki::preprocess($params{page}, $params{destpage},
+ IkiWiki::filter($params{page}, $params{text}));
my $id=genid($params{page}, $params{id});
my $id=genid($params{page}, $params{id});
* Make the basewiki be full of symlinks to pages that should be the same
in the doc wiki. This will allow direct edits to alter the base wiki
without manual munging.
* Make the basewiki be full of symlinks to pages that should be the same
in the doc wiki. This will allow direct edits to alter the base wiki
without manual munging.
+ * Fix the template, toggle, and conditional plugins to filter text before
+ preprocessing it.
+ * Fix smiley plugin to support smileys at the very beginning or end of
+ the content.
- -- Joey Hess <joeyh@debian.org> Tue, 13 Feb 2007 18:06:02 -0500
+ -- Joey Hess <joeyh@debian.org> Tue, 13 Feb 2007 18:40:36 -0500
ikiwiki (1.42) unstable; urgency=low
ikiwiki (1.42) unstable; urgency=low
>
> Also, for an example of this issue, consider the sample conditional on [[plugins/conditional]].
>
>
> Also, for an example of this issue, consider the sample conditional on [[plugins/conditional]].
>
-> --[[JoshTriplett]]
\ No newline at end of file
+> --[[JoshTriplett]]
+
+[[todo/done]] --[[Joey]]
msgstr ""
"Project-Id-Version: es\n"
"Report-Msgid-Bugs-To: \n"
msgstr ""
"Project-Id-Version: es\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-02-11 22:01-0500\n"
+"POT-Creation-Date: 2007-02-13 18:43-0500\n"
"PO-Revision-Date: 2007-02-12 10:31+0100\n"
"Last-Translator: Víctor Moral <victor@taquiones.net>\n"
"Language-Team: spanish <es@li.org>\n"
"PO-Revision-Date: 2007-02-12 10:31+0100\n"
"Last-Translator: Víctor Moral <victor@taquiones.net>\n"
"Language-Team: spanish <es@li.org>\n"
#: ../IkiWiki/CGI.pm:660
msgid "login failed, perhaps you need to turn on cookies?"
#: ../IkiWiki/CGI.pm:660
msgid "login failed, perhaps you need to turn on cookies?"
-msgstr "registro fallido, ¿ tal vez es necesario activar las cookies en el navegador ?"
+msgstr ""
+"registro fallido, ¿ tal vez es necesario activar las cookies en el "
+"navegador ?"
#: ../IkiWiki/Plugin/aggregate.pm:61
#, perl-format
#: ../IkiWiki/Plugin/aggregate.pm:61
#, perl-format
#: ../IkiWiki/Plugin/googlecalendar.pm:22
msgid "googlecalendar failed to find url in html"
#: ../IkiWiki/Plugin/googlecalendar.pm:22
msgid "googlecalendar failed to find url in html"
-msgstr "El complemento googlecalendar no ha encontrado un URL en el código HTML"
+msgstr ""
+"El complemento googlecalendar no ha encontrado un URL en el código HTML"
#: ../IkiWiki/Plugin/inline.pm:36
msgid "Must specify url to wiki with --url when using --rss or --atom"
#: ../IkiWiki/Plugin/inline.pm:36
msgid "Must specify url to wiki with --url when using --rss or --atom"
#: ../IkiWiki/Render.pm:402
#, perl-format
msgid "rendering %s, to update its backlinks"
#: ../IkiWiki/Render.pm:402
#, perl-format
msgid "rendering %s, to update its backlinks"
-msgstr "convirtiendo la página %s para actualizar la lista de páginas que hacen referencia a ella."
+msgstr ""
+"convirtiendo la página %s para actualizar la lista de páginas que hacen "
+"referencia a ella."
#: ../IkiWiki/Render.pm:414
#, perl-format
#: ../IkiWiki/Render.pm:414
#, perl-format
#: ../IkiWiki/Wrapper.pm:20
msgid "cannot create a wrapper that uses a setup file"
#: ../IkiWiki/Wrapper.pm:20
msgid "cannot create a wrapper that uses a setup file"
-msgstr "no puedo crear un programa envoltorio que utiliza un archivo de configuración"
+msgstr ""
+"no puedo crear un programa envoltorio que utiliza un archivo de configuración"
#: ../IkiWiki/Wrapper.pm:24
msgid "wrapper filename not specified"
#: ../IkiWiki/Wrapper.pm:24
msgid "wrapper filename not specified"
#: ../IkiWiki.pm:103
msgid "Must specify url to wiki with --url when using --cgi"
msgstr ""
#: ../IkiWiki.pm:103
msgid "Must specify url to wiki with --url when using --cgi"
msgstr ""
-"Es obligatorio especificar un url al wiki con el parámetro --url si se utiliza "
-"el parámetro --cgi"
+"Es obligatorio especificar un url al wiki con el parámetro --url si se "
+"utiliza el parámetro --cgi"
#: ../IkiWiki.pm:148 ../IkiWiki.pm:149
msgid "Error"
#: ../IkiWiki.pm:148 ../IkiWiki.pm:149
msgid "Error"
msgstr ""
"se ha detectado un bucle de preprocesado %s en la página %s en la vuelta "
"número %i"
msgstr ""
"se ha detectado un bucle de preprocesado %s en la página %s en la vuelta "
"número %i"
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-02-11 22:01-0500\n"
+"POT-Creation-Date: 2007-02-13 19:10-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"