From f37e0db153604fcf6331310134cba0bde60245cd Mon Sep 17 00:00:00 2001 From: Ian Date: Sat, 8 Feb 2014 17:08:59 +0100 Subject: [PATCH] upport last nl2br changes --- .../UTF-8/lang_bg.inc.php | 5 +- .../UTF-8/lang_cn.inc.php | 10 +- .../UTF-8/lang_cs.inc.php | 29 +++--- .../UTF-8/lang_cz.inc.php | 29 +++--- .../UTF-8/lang_de.inc.php | 10 +- .../UTF-8/lang_es.inc.php | 6 +- .../UTF-8/lang_fr.inc.php | 22 ++--- .../UTF-8/lang_ja.inc.php | 6 +- .../UTF-8/lang_ko.inc.php | 16 ++-- .../UTF-8/lang_pl.inc.php | 6 +- .../UTF-8/lang_pt_PT.inc.php | 21 ++--- .../UTF-8/lang_sk.inc.php | 3 +- .../UTF-8/lang_tn.inc.php | 27 +++--- .../UTF-8/lang_zh.inc.php | 10 +- .../serendipity_event_nl2br/lang_bg.inc.php | 5 +- .../serendipity_event_nl2br/lang_cn.inc.php | 10 +- .../serendipity_event_nl2br/lang_cs.inc.php | 29 +++--- .../serendipity_event_nl2br/lang_cz.inc.php | 29 +++--- .../serendipity_event_nl2br/lang_de.inc.php | 10 +- .../serendipity_event_nl2br/lang_en.inc.php | 6 +- .../serendipity_event_nl2br/lang_es.inc.php | 6 +- .../serendipity_event_nl2br/lang_fr.inc.php | 22 ++--- .../serendipity_event_nl2br/lang_ja.inc.php | 6 +- .../serendipity_event_nl2br/lang_ko.inc.php | 16 ++-- .../serendipity_event_nl2br/lang_pl.inc.php | 6 +- .../lang_pt_PT.inc.php | 21 ++--- .../serendipity_event_nl2br/lang_sk.inc.php | 3 +- .../serendipity_event_nl2br/lang_tn.inc.php | 27 +++--- .../serendipity_event_nl2br/lang_zh.inc.php | 10 +- .../serendipity_event_nl2br.php | 92 +++++++++++-------- 30 files changed, 269 insertions(+), 229 deletions(-) diff --git a/plugins/serendipity_event_nl2br/UTF-8/lang_bg.inc.php b/plugins/serendipity_event_nl2br/UTF-8/lang_bg.inc.php index 981981bc..82acb89e 100644 --- a/plugins/serendipity_event_nl2br/UTF-8/lang_bg.inc.php +++ b/plugins/serendipity_event_nl2br/UTF-8/lang_bg.inc.php @@ -1,7 +1,7 @@ - * EN-Revision: Revision of lang_en.inc.php * Translated on 2007/11/30 @@ -13,18 +13,19 @@ * @revisionDate 2012/01/08 */ -@define('PLUGIN_EVENT_NL2BR_NAME', 'Markup: NL2BR'); -@define('PLUGIN_EVENT_NL2BR_DESC', 'Mění znaky konce řádku na tagy
'); -@define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS', 'Seznam html tagů, uvnitř kterých nemají být konce řádků nahrazovány.'); +@define('PLUGIN_EVENT_NL2BR_NAME', 'Markup: NL2BR'); +@define('PLUGIN_EVENT_NL2BR_DESC', 'Mění znaky konce řádku na tagy
'); +@define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS', 'Seznam html tagů, uvnitř kterých nemají být konce řádků nahrazovány.'); @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS_DESC', 'Návrhy: "code,pre,geshi,textarea". Názvy tagů oddělujte čárkou. Tip: Zadávané tagy jsou vyhodnocovány jako regulární výraz.'); -@define('PLUGIN_EVENT_NL2BR_PTAGS', 'Použít tagy <p>'); -@define('PLUGIN_EVENT_NL2BR_PTAGS_DESC', 'Vkládat tagy <p> místo tagů <br />'); +@define('PLUGIN_EVENT_NL2BR_PTAGS', 'Použít tagy <p>'); +@define('PLUGIN_EVENT_NL2BR_PTAGS_DESC', 'Vkládat tagy <p> místo tagů <br />'); // Next lines were translated on 2012/01/08 -@define('PLUGIN_EVENT_NL2BR_CHECK_MARKUP', 'Kontrolovat další značkovací pluginy?'); -@define('PLUGIN_EVENT_NL2BR_CHECK_MARKUP_DESC', 'Automaticky zkontroluje, jestli jsou nainstalovány jiné značkovací pluginy. To je pravda, pokud je použit WYSIWYG editor nebo specifické značkovací pluginy. Pak je plugin NL2BR vypnut.'); -@define('PLUGIN_EVENT_NL2BR_ISOBR_TAG', 'IOSBR izolace - výchozí nastavení BR'); -@define('PLUGIN_EVENT_NL2BR_ISOBR_TAG_DESC', 'Tento nový NE-HTML tag umožňuje vypnout převod nových řádků na tag BR v kusu textu uzavřeném uvnitř tagů. Můžete ho použít vícekrát v jednom příspěvku, ale nemůžete ho vnořovat! Příklad: v tomto textu nebudou převáděny znaky nového řádku na tag BR'); -@define('PLUGIN_EVENT_NL2BR_CLEANTAGS', 'Použít BR-čisté-tagy jak návratovou hodnotu, pokud je ISOBR zakázáno'); -@define('PLUGIN_EVENT_NL2BR_CLEANTAGS_DESC', 'Pokud používáte v příspěvku , které nelze úspěšně použít společně s nastavením ISOBR, pak tato volba zapnutá bude mít za následek ignorování znaků nových řádků bezprostředně za . Výchozí: (table|thead|tbody|tfoot|th|tr|td|caption|colgroup|col|ol|ul|li|dl|dt|dd)'); -@define('PLUGIN_EVENT_NL2BR_CONFIG_ERROR', 'Varování: Nepořádek v nastavení! Nastavení "%s" bylo nastaveno zpět na "NE", pokud je aktivní \'%s\'! Je přípustné použít pouze jednu z těchto voleb.'); \ No newline at end of file +@define('PLUGIN_EVENT_NL2BR_CHECK_MARKUP', 'Kontrolovat další značkovací pluginy?'); +@define('PLUGIN_EVENT_NL2BR_CHECK_MARKUP_DESC', 'Automaticky zkontroluje, jestli jsou nainstalovány jiné značkovací pluginy. To je pravda, pokud je použit WYSIWYG editor nebo specifické značkovací pluginy. Pak je plugin NL2BR vypnut.'); +@define('PLUGIN_EVENT_NL2BR_ISOBR_TAG', 'IOSBR izolace - výchozí nastavení BR'); +@define('PLUGIN_EVENT_NL2BR_ISOBR_TAG_DESC', 'Tento nový NE-HTML tag umožňuje vypnout převod nových řádků na tag BR v kusu textu uzavřeném uvnitř tagů. Můžete ho použít vícekrát v jednom příspěvku, ale nemůžete ho vnořovat! Příklad: v tomto textu nebudou převáděny znaky nového řádku na tag BR'); +@define('PLUGIN_EVENT_NL2BR_CLEANTAGS', 'Použít BR-čisté-tagy jak návratovou hodnotu, pokud je ISOBR zakázáno'); +@define('PLUGIN_EVENT_NL2BR_CLEANTAGS_DESC', 'Pokud používáte v příspěvku , které nelze úspěšně použít společně s nastavením ISOBR, pak tato volba zapnutá bude mít za následek ignorování znaků nových řádků bezprostředně za . Výchozí: (table|thead|tbody|tfoot|th|tr|td|caption|colgroup|col|ol|ul|li|dl|dt|dd)'); +@define('PLUGIN_EVENT_NL2BR_CONFIG_ERROR', 'Varování: Nepořádek v nastavení! Nastavení "čisté tagy" bylo nastaveno zpět na "NE", pokud je aktivní \'ISOBR\'! Je přípustné použít pouze jednu z těchto voleb.'); + diff --git a/plugins/serendipity_event_nl2br/UTF-8/lang_cz.inc.php b/plugins/serendipity_event_nl2br/UTF-8/lang_cz.inc.php index ea414a42..171ebb71 100644 --- a/plugins/serendipity_event_nl2br/UTF-8/lang_cz.inc.php +++ b/plugins/serendipity_event_nl2br/UTF-8/lang_cz.inc.php @@ -1,7 +1,7 @@ - * EN-Revision: Revision of lang_en.inc.php * Translated on 2007/11/30 @@ -13,18 +13,19 @@ * @revisionDate 2012/01/08 */ -@define('PLUGIN_EVENT_NL2BR_NAME', 'Markup: NL2BR'); -@define('PLUGIN_EVENT_NL2BR_DESC', 'Mění znaky konce řádku na tagy
'); -@define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS', 'Seznam html tagů, uvnitř kterých nemají být konce řádků nahrazovány.'); +@define('PLUGIN_EVENT_NL2BR_NAME', 'Markup: NL2BR'); +@define('PLUGIN_EVENT_NL2BR_DESC', 'Mění znaky konce řádku na tagy
'); +@define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS', 'Seznam html tagů, uvnitř kterých nemají být konce řádků nahrazovány.'); @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS_DESC', 'Návrhy: "code,pre,geshi,textarea". Názvy tagů oddělujte čárkou. Tip: Zadávané tagy jsou vyhodnocovány jako regulární výraz.'); -@define('PLUGIN_EVENT_NL2BR_PTAGS', 'Použít tagy <p>'); -@define('PLUGIN_EVENT_NL2BR_PTAGS_DESC', 'Vkládat tagy <p> místo tagů <br />'); +@define('PLUGIN_EVENT_NL2BR_PTAGS', 'Použít tagy <p>'); +@define('PLUGIN_EVENT_NL2BR_PTAGS_DESC', 'Vkládat tagy <p> místo tagů <br />'); // Next lines were translated on 2012/01/08 -@define('PLUGIN_EVENT_NL2BR_CHECK_MARKUP', 'Kontrolovat další značkovací pluginy?'); -@define('PLUGIN_EVENT_NL2BR_CHECK_MARKUP_DESC', 'Automaticky zkontroluje, jestli jsou nainstalovány jiné značkovací pluginy. To je pravda, pokud je použit WYSIWYG editor nebo specifické značkovací pluginy. Pak je plugin NL2BR vypnut.'); -@define('PLUGIN_EVENT_NL2BR_ISOBR_TAG', 'IOSBR izolace - výchozí nastavení BR'); -@define('PLUGIN_EVENT_NL2BR_ISOBR_TAG_DESC', 'Tento nový NE-HTML tag umožňuje vypnout převod nových řádků na tag BR v kusu textu uzavřeném uvnitř tagů. Můžete ho použít vícekrát v jednom příspěvku, ale nemůžete ho vnořovat! Příklad: v tomto textu nebudou převáděny znaky nového řádku na tag BR'); -@define('PLUGIN_EVENT_NL2BR_CLEANTAGS', 'Použít BR-čisté-tagy jak návratovou hodnotu, pokud je ISOBR zakázáno'); -@define('PLUGIN_EVENT_NL2BR_CLEANTAGS_DESC', 'Pokud používáte v příspěvku , které nelze úspěšně použít společně s nastavením ISOBR, pak tato volba zapnutá bude mít za následek ignorování znaků nových řádků bezprostředně za . Výchozí: (table|thead|tbody|tfoot|th|tr|td|caption|colgroup|col|ol|ul|li|dl|dt|dd)'); -@define('PLUGIN_EVENT_NL2BR_CONFIG_ERROR', 'Varování: Nepořádek v nastavení! Nastavení "%s" bylo nastaveno zpět na "NE", pokud je aktivní \'%s\'! Je přípustné použít pouze jednu z těchto voleb.'); \ No newline at end of file +@define('PLUGIN_EVENT_NL2BR_CHECK_MARKUP', 'Kontrolovat další značkovací pluginy?'); +@define('PLUGIN_EVENT_NL2BR_CHECK_MARKUP_DESC', 'Automaticky zkontroluje, jestli jsou nainstalovány jiné značkovací pluginy. To je pravda, pokud je použit WYSIWYG editor nebo specifické značkovací pluginy. Pak je plugin NL2BR vypnut.'); +@define('PLUGIN_EVENT_NL2BR_ISOBR_TAG', 'IOSBR izolace - výchozí nastavení BR'); +@define('PLUGIN_EVENT_NL2BR_ISOBR_TAG_DESC', 'Tento nový NE-HTML tag umožňuje vypnout převod nových řádků na tag BR v kusu textu uzavřeném uvnitř tagů. Můžete ho použít vícekrát v jednom příspěvku, ale nemůžete ho vnořovat! Příklad: v tomto textu nebudou převáděny znaky nového řádku na tag BR'); +@define('PLUGIN_EVENT_NL2BR_CLEANTAGS', 'Použít BR-čisté-tagy jak návratovou hodnotu, pokud je ISOBR zakázáno'); +@define('PLUGIN_EVENT_NL2BR_CLEANTAGS_DESC', 'Pokud používáte v příspěvku , které nelze úspěšně použít společně s nastavením ISOBR, pak tato volba zapnutá bude mít za následek ignorování znaků nových řádků bezprostředně za . Výchozí: (table|thead|tbody|tfoot|th|tr|td|caption|colgroup|col|ol|ul|li|dl|dt|dd)'); +@define('PLUGIN_EVENT_NL2BR_CONFIG_ERROR', 'Varování: Nepořádek v nastavení! Nastavení "čisté tagy" bylo nastaveno zpět na "NE", pokud je aktivní \'ISOBR\'! Je přípustné použít pouze jednu z těchto voleb.'); + diff --git a/plugins/serendipity_event_nl2br/UTF-8/lang_de.inc.php b/plugins/serendipity_event_nl2br/UTF-8/lang_de.inc.php index 94ca6e26..4c87411a 100644 --- a/plugins/serendipity_event_nl2br/UTF-8/lang_de.inc.php +++ b/plugins/serendipity_event_nl2br/UTF-8/lang_de.inc.php @@ -1,4 +1,11 @@ - in den Einträgen, die nicht zufriedenstellend mit der ISOBR Config-Option gelöst werden können, lösche nl2br Umbruch nach . Dies gilt für alle , die mit > oder >\n enden! Default (table|thead|tbody|tfoot|th|tr|td|caption|colgroup|col|ol|ul|li|dl|dt|dd)'); @define('PLUGIN_EVENT_NL2BR_CONFIG_ERROR', 'Konfigurations Fehler! Die Option: "%s" wurde zurückgesetzt, weil die Option \'%s\' aktiv geschaltet war! Benutzen sie bitte nur eine dieser Optionen.'); + diff --git a/plugins/serendipity_event_nl2br/UTF-8/lang_es.inc.php b/plugins/serendipity_event_nl2br/UTF-8/lang_es.inc.php index 251c130f..aa50418a 100644 --- a/plugins/serendipity_event_nl2br/UTF-8/lang_es.inc.php +++ b/plugins/serendipity_event_nl2br/UTF-8/lang_es.inc.php @@ -1,6 +1,7 @@ - * EN-Revision: 690 */ @@ -8,4 +9,3 @@ @define('PLUGIN_EVENT_NL2BR_NAME', 'Formato: NL2BR'); @define('PLUGIN_EVENT_NL2BR_DESC', 'Convierte los saltos de linea en etiquetas BR'); -?> diff --git a/plugins/serendipity_event_nl2br/UTF-8/lang_fr.inc.php b/plugins/serendipity_event_nl2br/UTF-8/lang_fr.inc.php index 90e814ec..8ebbb1a3 100644 --- a/plugins/serendipity_event_nl2br/UTF-8/lang_fr.inc.php +++ b/plugins/serendipity_event_nl2br/UTF-8/lang_fr.inc.php @@ -1,20 +1,12 @@ - # -# http://www.jannis.to/programming/serendipity.html # -# # -# Translated by # -# Sebastian Mordziol # -# http://sebastian.mordziol.de # -# # -########################################################################## +/** + * @version + * @file + * @author Sebastian Mordziol http://sebastian.mordziol.de + * EN-Revision: Revision of lang_en.inc.php + */ @define('PLUGIN_EVENT_NL2BR_NAME', 'Balises: NL2BR'); @define('PLUGIN_EVENT_NL2BR_DESC', 'Convertit les retours à la ligne en balises BR'); -/* vim: set sts=4 ts=4 expandtab : */ -?> \ No newline at end of file diff --git a/plugins/serendipity_event_nl2br/UTF-8/lang_ja.inc.php b/plugins/serendipity_event_nl2br/UTF-8/lang_ja.inc.php index d881dda1..36098014 100644 --- a/plugins/serendipity_event_nl2br/UTF-8/lang_ja.inc.php +++ b/plugins/serendipity_event_nl2br/UTF-8/lang_ja.inc.php @@ -1,7 +1,7 @@ - * EN-Revision: 1501 */ @@ -11,4 +11,4 @@ @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS', '改行を変換しない HTML タグの一覧'); @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS_DESC', '提案: "code,pre,geshi,textarea". 複数のタグをカンマ(「,」)で分けます。ヒント: 入力されたタグは正規表現として評価されます。'); -?> + diff --git a/plugins/serendipity_event_nl2br/UTF-8/lang_ko.inc.php b/plugins/serendipity_event_nl2br/UTF-8/lang_ko.inc.php index 58c69fe3..dae39c3c 100644 --- a/plugins/serendipity_event_nl2br/UTF-8/lang_ko.inc.php +++ b/plugins/serendipity_event_nl2br/UTF-8/lang_ko.inc.php @@ -1,8 +1,12 @@ - -# (c) 2005 http://www.tool-box.info/ + http://www.tool-box.info/ + * EN-Revision: Revision of lang_en.inc.php + */ + +@define('PLUGIN_EVENT_NL2BR_NAME', '마크업: NL2BR'); +@define('PLUGIN_EVENT_NL2BR_DESC', '새 줄을 BR 태그로 변환함'); -?> diff --git a/plugins/serendipity_event_nl2br/UTF-8/lang_pl.inc.php b/plugins/serendipity_event_nl2br/UTF-8/lang_pl.inc.php index fe2da927..64fa9802 100644 --- a/plugins/serendipity_event_nl2br/UTF-8/lang_pl.inc.php +++ b/plugins/serendipity_event_nl2br/UTF-8/lang_pl.inc.php @@ -1,7 +1,7 @@ - * EN-Revision: Revision of lang_en.inc.php */ @@ -10,4 +10,4 @@ @define('PLUGIN_EVENT_NL2BR_DESC', 'Zmieniaj znaki nowych linii na tagi BR'); @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS', 'Lista tagów HTML, w których znacznik nie powinien być stosowany'); @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS_DESC', 'Sugestia: "code,pre,geshi,textarea". Rozdzielaj tagi przecinkiem. Podpowiedź: wpisane tagi są traktowane jako zwykłe wyrażenia.'); -?> \ No newline at end of file + diff --git a/plugins/serendipity_event_nl2br/UTF-8/lang_pt_PT.inc.php b/plugins/serendipity_event_nl2br/UTF-8/lang_pt_PT.inc.php index 3e69b350..c65f319e 100644 --- a/plugins/serendipity_event_nl2br/UTF-8/lang_pt_PT.inc.php +++ b/plugins/serendipity_event_nl2br/UTF-8/lang_pt_PT.inc.php @@ -1,19 +1,12 @@ - # -# http://www.jannis.to/programming/serendipity.html # -# # -# Translated by # -# João P Matos # -# # -########################################################################## +/** + * @version + * @file + * @author João P Matos + * EN-Revision: Revision of lang_en.inc.php + */ @define('PLUGIN_EVENT_NL2BR_NAME', 'Código: NL2BR'); @define('PLUGIN_EVENT_NL2BR_DESC', 'Converte os fins de linha em etiquetas BR'); -/* vim: set sts=4 ts=4 expandtab : */ -?> \ No newline at end of file diff --git a/plugins/serendipity_event_nl2br/UTF-8/lang_sk.inc.php b/plugins/serendipity_event_nl2br/UTF-8/lang_sk.inc.php index b1628b4a..b041ab5d 100644 --- a/plugins/serendipity_event_nl2br/UTF-8/lang_sk.inc.php +++ b/plugins/serendipity_event_nl2br/UTF-8/lang_sk.inc.php @@ -1,4 +1,4 @@ - # -# http://www.jannis.to/programming/serendipity.html # -# # -# Translated by # -# (c) 2004-2005 CapriSkye # -# http://open.38.com # -########################################################################## + http://open.38.com + * EN-Revision: Revision of lang_en.inc.php + */ + +@define('PLUGIN_EVENT_NL2BR_NAME', '標記語言: NL2BR'); +@define('PLUGIN_EVENT_NL2BR_DESC', '轉換新行成 BR 標籤'); - @define('PLUGIN_EVENT_NL2BR_NAME', '標記語言: NL2BR'); - @define('PLUGIN_EVENT_NL2BR_DESC', '轉換新行成 BR 標籤'); -?> \ No newline at end of file diff --git a/plugins/serendipity_event_nl2br/UTF-8/lang_zh.inc.php b/plugins/serendipity_event_nl2br/UTF-8/lang_zh.inc.php index d787c46d..0476241e 100644 --- a/plugins/serendipity_event_nl2br/UTF-8/lang_zh.inc.php +++ b/plugins/serendipity_event_nl2br/UTF-8/lang_zh.inc.php @@ -1,6 +1,14 @@ - * EN-Revision: Revision of lang_en.inc.php * Translated on 2007/11/30 @@ -13,18 +13,19 @@ * @revisionDate 2012/01/08 */ -@define('PLUGIN_EVENT_NL2BR_NAME', 'Markup: NL2BR'); -@define('PLUGIN_EVENT_NL2BR_DESC', 'Mn znaky konce dku na tagy
'); -@define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS', 'Seznam html tag, uvnit kterch nemaj bt konce dk nahrazovny.'); +@define('PLUGIN_EVENT_NL2BR_NAME', 'Markup: NL2BR'); +@define('PLUGIN_EVENT_NL2BR_DESC', 'Mn znaky konce dku na tagy
'); +@define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS', 'Seznam html tag, uvnit kterch nemaj bt konce dk nahrazovny.'); @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS_DESC', 'Nvrhy: "code,pre,geshi,textarea". Nzvy tag oddlujte rkou. Tip: Zadvan tagy jsou vyhodnocovny jako regulrn vraz.'); -@define('PLUGIN_EVENT_NL2BR_PTAGS', 'Pout tagy <p>'); -@define('PLUGIN_EVENT_NL2BR_PTAGS_DESC', 'Vkldat tagy <p> msto tag <br />'); +@define('PLUGIN_EVENT_NL2BR_PTAGS', 'Pout tagy <p>'); +@define('PLUGIN_EVENT_NL2BR_PTAGS_DESC', 'Vkldat tagy <p> msto tag <br />'); // Next lines were translated on 2012/01/08 -@define('PLUGIN_EVENT_NL2BR_CHECK_MARKUP', 'Kontrolovat dal znakovac pluginy?'); -@define('PLUGIN_EVENT_NL2BR_CHECK_MARKUP_DESC', 'Automaticky zkontroluje, jestli jsou nainstalovny jin znakovac pluginy. To je pravda, pokud je pouit WYSIWYG editor nebo specifick znakovac pluginy. Pak je plugin NL2BR vypnut.'); -@define('PLUGIN_EVENT_NL2BR_ISOBR_TAG', 'IOSBR izolace - vchoz nastaven BR'); -@define('PLUGIN_EVENT_NL2BR_ISOBR_TAG_DESC', 'Tento nov NE-HTML tag umouje vypnout pevod novch dk na tag BR v kusu textu uzavenm uvnit tag. Mete ho pout vcekrt v jednom pspvku, ale nemete ho vnoovat! Pklad: v tomto textu nebudou pevdny znaky novho dku na tag BR'); -@define('PLUGIN_EVENT_NL2BR_CLEANTAGS', 'Pout BR-ist-tagy jak nvratovou hodnotu, pokud je ISOBR zakzno'); -@define('PLUGIN_EVENT_NL2BR_CLEANTAGS_DESC', 'Pokud pouvte v pspvku , kter nelze spn pout spolen s nastavenm ISOBR, pak tato volba zapnut bude mt za nsledek ignorovn znak novch dk bezprostedn za . Vchoz: (table|thead|tbody|tfoot|th|tr|td|caption|colgroup|col|ol|ul|li|dl|dt|dd)'); -@define('PLUGIN_EVENT_NL2BR_CONFIG_ERROR', 'Varovn: Nepodek v nastaven! Nastaven "%s" bylo nastaveno zpt na "NE", pokud je aktivn \'%s\'! Je ppustn pout pouze jednu z tchto voleb.'); \ No newline at end of file +@define('PLUGIN_EVENT_NL2BR_CHECK_MARKUP', 'Kontrolovat dal znakovac pluginy?'); +@define('PLUGIN_EVENT_NL2BR_CHECK_MARKUP_DESC', 'Automaticky zkontroluje, jestli jsou nainstalovny jin znakovac pluginy. To je pravda, pokud je pouit WYSIWYG editor nebo specifick znakovac pluginy. Pak je plugin NL2BR vypnut.'); +@define('PLUGIN_EVENT_NL2BR_ISOBR_TAG', 'IOSBR izolace - vchoz nastaven BR'); +@define('PLUGIN_EVENT_NL2BR_ISOBR_TAG_DESC', 'Tento nov NE-HTML tag umouje vypnout pevod novch dk na tag BR v kusu textu uzavenm uvnit tag. Mete ho pout vcekrt v jednom pspvku, ale nemete ho vnoovat! Pklad: v tomto textu nebudou pevdny znaky novho dku na tag BR'); +@define('PLUGIN_EVENT_NL2BR_CLEANTAGS', 'Pout BR-ist-tagy jak nvratovou hodnotu, pokud je ISOBR zakzno'); +@define('PLUGIN_EVENT_NL2BR_CLEANTAGS_DESC', 'Pokud pouvte v pspvku , kter nelze spn pout spolen s nastavenm ISOBR, pak tato volba zapnut bude mt za nsledek ignorovn znak novch dk bezprostedn za . Vchoz: (table|thead|tbody|tfoot|th|tr|td|caption|colgroup|col|ol|ul|li|dl|dt|dd)'); +@define('PLUGIN_EVENT_NL2BR_CONFIG_ERROR', 'Varovn: Nepodek v nastaven! Nastaven "ist tagy" bylo nastaveno zpt na "NE", pokud je aktivn \'ISOBR\'! Je ppustn pout pouze jednu z tchto voleb.'); + diff --git a/plugins/serendipity_event_nl2br/lang_cz.inc.php b/plugins/serendipity_event_nl2br/lang_cz.inc.php index f54191d9..d2d65c17 100644 --- a/plugins/serendipity_event_nl2br/lang_cz.inc.php +++ b/plugins/serendipity_event_nl2br/lang_cz.inc.php @@ -1,7 +1,7 @@ - * EN-Revision: Revision of lang_en.inc.php * Translated on 2007/11/30 @@ -13,18 +13,19 @@ * @revisionDate 2012/01/08 */ -@define('PLUGIN_EVENT_NL2BR_NAME', 'Markup: NL2BR'); -@define('PLUGIN_EVENT_NL2BR_DESC', 'Mn znaky konce dku na tagy
'); -@define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS', 'Seznam html tag, uvnit kterch nemaj bt konce dk nahrazovny.'); +@define('PLUGIN_EVENT_NL2BR_NAME', 'Markup: NL2BR'); +@define('PLUGIN_EVENT_NL2BR_DESC', 'Mn znaky konce dku na tagy
'); +@define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS', 'Seznam html tag, uvnit kterch nemaj bt konce dk nahrazovny.'); @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS_DESC', 'Nvrhy: "code,pre,geshi,textarea". Nzvy tag oddlujte rkou. Tip: Zadvan tagy jsou vyhodnocovny jako regulrn vraz.'); -@define('PLUGIN_EVENT_NL2BR_PTAGS', 'Pout tagy <p>'); -@define('PLUGIN_EVENT_NL2BR_PTAGS_DESC', 'Vkldat tagy <p> msto tag <br />'); +@define('PLUGIN_EVENT_NL2BR_PTAGS', 'Pout tagy <p>'); +@define('PLUGIN_EVENT_NL2BR_PTAGS_DESC', 'Vkldat tagy <p> msto tag <br />'); // Next lines were translated on 2012/01/08 -@define('PLUGIN_EVENT_NL2BR_CHECK_MARKUP', 'Kontrolovat dal znakovac pluginy?'); -@define('PLUGIN_EVENT_NL2BR_CHECK_MARKUP_DESC', 'Automaticky zkontroluje, jestli jsou nainstalovny jin znakovac pluginy. To je pravda, pokud je pouit WYSIWYG editor nebo specifick znakovac pluginy. Pak je plugin NL2BR vypnut.'); -@define('PLUGIN_EVENT_NL2BR_ISOBR_TAG', 'IOSBR izolace - vchoz nastaven BR'); -@define('PLUGIN_EVENT_NL2BR_ISOBR_TAG_DESC', 'Tento nov NE-HTML tag umouje vypnout pevod novch dk na tag BR v kusu textu uzavenm uvnit tag. Mete ho pout vcekrt v jednom pspvku, ale nemete ho vnoovat! Pklad: v tomto textu nebudou pevdny znaky novho dku na tag BR'); -@define('PLUGIN_EVENT_NL2BR_CLEANTAGS', 'Pout BR-ist-tagy jak nvratovou hodnotu, pokud je ISOBR zakzno'); -@define('PLUGIN_EVENT_NL2BR_CLEANTAGS_DESC', 'Pokud pouvte v pspvku , kter nelze spn pout spolen s nastavenm ISOBR, pak tato volba zapnut bude mt za nsledek ignorovn znak novch dk bezprostedn za . Vchoz: (table|thead|tbody|tfoot|th|tr|td|caption|colgroup|col|ol|ul|li|dl|dt|dd)'); -@define('PLUGIN_EVENT_NL2BR_CONFIG_ERROR', 'Varovn: Nepodek v nastaven! Nastaven "%s" bylo nastaveno zpt na "NE", pokud je aktivn \'%s\'! Je ppustn pout pouze jednu z tchto voleb.'); \ No newline at end of file +@define('PLUGIN_EVENT_NL2BR_CHECK_MARKUP', 'Kontrolovat dal znakovac pluginy?'); +@define('PLUGIN_EVENT_NL2BR_CHECK_MARKUP_DESC', 'Automaticky zkontroluje, jestli jsou nainstalovny jin znakovac pluginy. To je pravda, pokud je pouit WYSIWYG editor nebo specifick znakovac pluginy. Pak je plugin NL2BR vypnut.'); +@define('PLUGIN_EVENT_NL2BR_ISOBR_TAG', 'IOSBR izolace - vchoz nastaven BR'); +@define('PLUGIN_EVENT_NL2BR_ISOBR_TAG_DESC', 'Tento nov NE-HTML tag umouje vypnout pevod novch dk na tag BR v kusu textu uzavenm uvnit tag. Mete ho pout vcekrt v jednom pspvku, ale nemete ho vnoovat! Pklad: v tomto textu nebudou pevdny znaky novho dku na tag BR'); +@define('PLUGIN_EVENT_NL2BR_CLEANTAGS', 'Pout BR-ist-tagy jak nvratovou hodnotu, pokud je ISOBR zakzno'); +@define('PLUGIN_EVENT_NL2BR_CLEANTAGS_DESC', 'Pokud pouvte v pspvku , kter nelze spn pout spolen s nastavenm ISOBR, pak tato volba zapnut bude mt za nsledek ignorovn znak novch dk bezprostedn za . Vchoz: (table|thead|tbody|tfoot|th|tr|td|caption|colgroup|col|ol|ul|li|dl|dt|dd)'); +@define('PLUGIN_EVENT_NL2BR_CONFIG_ERROR', 'Varovn: Nepodek v nastaven! Nastaven "ist tagy" bylo nastaveno zpt na "NE", pokud je aktivn \'ISOBR\'! Je ppustn pout pouze jednu z tchto voleb.'); + diff --git a/plugins/serendipity_event_nl2br/lang_de.inc.php b/plugins/serendipity_event_nl2br/lang_de.inc.php index 397903d6..edeb3bb0 100644 --- a/plugins/serendipity_event_nl2br/lang_de.inc.php +++ b/plugins/serendipity_event_nl2br/lang_de.inc.php @@ -1,4 +1,11 @@ - in den Eintrgen, die nicht zufriedenstellend mit der ISOBR Config-Option gelst werden knnen, lsche nl2br Umbruch nach . Dies gilt fr alle , die mit > oder >\n enden! Default (table|thead|tbody|tfoot|th|tr|td|caption|colgroup|col|ol|ul|li|dl|dt|dd)'); @define('PLUGIN_EVENT_NL2BR_CONFIG_ERROR', 'Konfigurations Fehler! Die Option: "%s" wurde zurckgesetzt, weil die Option \'%s\' aktiv geschaltet war! Benutzen sie bitte nur eine dieser Optionen.'); + diff --git a/plugins/serendipity_event_nl2br/lang_en.inc.php b/plugins/serendipity_event_nl2br/lang_en.inc.php index 112e9352..6b01ecd8 100644 --- a/plugins/serendipity_event_nl2br/lang_en.inc.php +++ b/plugins/serendipity_event_nl2br/lang_en.inc.php @@ -1,7 +1,7 @@ - * EN-Revision: Revision of lang_en.inc.php */ @@ -19,4 +19,4 @@ @define('PLUGIN_EVENT_NL2BR_CLEANTAGS', 'Use BR-Clean-Tags as fallback, when ISOBR false'); @define('PLUGIN_EVENT_NL2BR_CLEANTAGS_DESC', 'If using in you entries, which can\'t be solved satisfiable with the ISOBR Config-Option, remove nl2br after . This applies to all ending with > or >\n! Default (table|thead|tbody|tfoot|th|tr|td|caption|colgroup|col|ol|ul|li|dl|dt|dd)'); @define('PLUGIN_EVENT_NL2BR_CONFIG_ERROR', 'Config missmatch alert! The Option: "%s" is set back to false, while \'%s\' is active! Just use one of them, please.'); -?> + diff --git a/plugins/serendipity_event_nl2br/lang_es.inc.php b/plugins/serendipity_event_nl2br/lang_es.inc.php index 251c130f..aa50418a 100644 --- a/plugins/serendipity_event_nl2br/lang_es.inc.php +++ b/plugins/serendipity_event_nl2br/lang_es.inc.php @@ -1,6 +1,7 @@ - * EN-Revision: 690 */ @@ -8,4 +9,3 @@ @define('PLUGIN_EVENT_NL2BR_NAME', 'Formato: NL2BR'); @define('PLUGIN_EVENT_NL2BR_DESC', 'Convierte los saltos de linea en etiquetas BR'); -?> diff --git a/plugins/serendipity_event_nl2br/lang_fr.inc.php b/plugins/serendipity_event_nl2br/lang_fr.inc.php index 6ff029f9..a0351e7e 100644 --- a/plugins/serendipity_event_nl2br/lang_fr.inc.php +++ b/plugins/serendipity_event_nl2br/lang_fr.inc.php @@ -1,20 +1,12 @@ - # -# http://www.jannis.to/programming/serendipity.html # -# # -# Translated by # -# Sebastian Mordziol # -# http://sebastian.mordziol.de # -# # -########################################################################## +/** + * @version + * @file + * @author Sebastian Mordziol http://sebastian.mordziol.de + * EN-Revision: Revision of lang_en.inc.php + */ @define('PLUGIN_EVENT_NL2BR_NAME', 'Balises: NL2BR'); @define('PLUGIN_EVENT_NL2BR_DESC', 'Convertit les retours la ligne en balises BR'); -/* vim: set sts=4 ts=4 expandtab : */ -?> \ No newline at end of file diff --git a/plugins/serendipity_event_nl2br/lang_ja.inc.php b/plugins/serendipity_event_nl2br/lang_ja.inc.php index d881dda1..36098014 100644 --- a/plugins/serendipity_event_nl2br/lang_ja.inc.php +++ b/plugins/serendipity_event_nl2br/lang_ja.inc.php @@ -1,7 +1,7 @@ - * EN-Revision: 1501 */ @@ -11,4 +11,4 @@ @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS', '改行を変換しない HTML タグの一覧'); @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS_DESC', '提案: "code,pre,geshi,textarea". 複数のタグをカンマ(「,」)で分けます。ヒント: 入力されたタグは正規表現として評価されます。'); -?> + diff --git a/plugins/serendipity_event_nl2br/lang_ko.inc.php b/plugins/serendipity_event_nl2br/lang_ko.inc.php index 58c69fe3..dae39c3c 100644 --- a/plugins/serendipity_event_nl2br/lang_ko.inc.php +++ b/plugins/serendipity_event_nl2br/lang_ko.inc.php @@ -1,8 +1,12 @@ - -# (c) 2005 http://www.tool-box.info/ + http://www.tool-box.info/ + * EN-Revision: Revision of lang_en.inc.php + */ + +@define('PLUGIN_EVENT_NL2BR_NAME', '마크업: NL2BR'); +@define('PLUGIN_EVENT_NL2BR_DESC', '새 줄을 BR 태그로 변환함'); -?> diff --git a/plugins/serendipity_event_nl2br/lang_pl.inc.php b/plugins/serendipity_event_nl2br/lang_pl.inc.php index 06781115..8a652f7b 100644 --- a/plugins/serendipity_event_nl2br/lang_pl.inc.php +++ b/plugins/serendipity_event_nl2br/lang_pl.inc.php @@ -1,7 +1,7 @@ - * EN-Revision: Revision of lang_en.inc.php */ @@ -10,4 +10,4 @@ @define('PLUGIN_EVENT_NL2BR_DESC', 'Zmieniaj znaki nowych linii na tagi BR'); @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS', 'Lista tagw HTML, w ktrych znacznik nie powinien by stosowany'); @define('PLUGIN_EVENT_NL2BR_ISOLATE_TAGS_DESC', 'Sugestia: "code,pre,geshi,textarea". Rozdzielaj tagi przecinkiem. Podpowied: wpisane tagi s traktowane jako zwyke wyraenia.'); -?> + diff --git a/plugins/serendipity_event_nl2br/lang_pt_PT.inc.php b/plugins/serendipity_event_nl2br/lang_pt_PT.inc.php index 2628b82e..1898a0ff 100644 --- a/plugins/serendipity_event_nl2br/lang_pt_PT.inc.php +++ b/plugins/serendipity_event_nl2br/lang_pt_PT.inc.php @@ -1,19 +1,12 @@ - # -# http://www.jannis.to/programming/serendipity.html # -# # -# Translated by # -# Joo P Matos # -# # -########################################################################## +/** + * @version + * @file + * @author Joo P Matos + * EN-Revision: Revision of lang_en.inc.php + */ @define('PLUGIN_EVENT_NL2BR_NAME', 'Cdigo: NL2BR'); @define('PLUGIN_EVENT_NL2BR_DESC', 'Converte os fins de linha em etiquetas BR'); -/* vim: set sts=4 ts=4 expandtab : */ -?> \ No newline at end of file diff --git a/plugins/serendipity_event_nl2br/lang_sk.inc.php b/plugins/serendipity_event_nl2br/lang_sk.inc.php index 7d7700dd..8de4f345 100644 --- a/plugins/serendipity_event_nl2br/lang_sk.inc.php +++ b/plugins/serendipity_event_nl2br/lang_sk.inc.php @@ -1,4 +1,4 @@ - # -# http://www.jannis.to/programming/serendipity.html # -# # -# Translated by # -# (c) 2004-2005 CapriSkye # -# http://open.38.com # -########################################################################## + http://open.38.com + * EN-Revision: Revision of lang_en.inc.php + */ + +@define('PLUGIN_EVENT_NL2BR_NAME', '標記語言: NL2BR'); +@define('PLUGIN_EVENT_NL2BR_DESC', '轉換新行成 BR 標籤'); - @define('PLUGIN_EVENT_NL2BR_NAME', '標記語言: NL2BR'); - @define('PLUGIN_EVENT_NL2BR_DESC', '轉換新行成 BR 標籤'); -?> \ No newline at end of file diff --git a/plugins/serendipity_event_nl2br/lang_zh.inc.php b/plugins/serendipity_event_nl2br/lang_zh.inc.php index d787c46d..0476241e 100644 --- a/plugins/serendipity_event_nl2br/lang_zh.inc.php +++ b/plugins/serendipity_event_nl2br/lang_zh.inc.php @@ -1,6 +1,14 @@ -add('description', PLUGIN_EVENT_NL2BR_DESC); $propbag->add('stackable', false); $propbag->add('author', 'Serendipity Team'); - $propbag->add('version', '2.18'); + $propbag->add('version', '2.19'); $propbag->add('requirements', array( 'serendipity' => '0.8', 'smarty' => '2.6.7', 'php' => '4.1.0' )); $propbag->add('cachable_events', array('frontend_display' => true)); - - $propbag->add('event_hooks', array('frontend_display' => true, + + $propbag->add('event_hooks', array('frontend_display' => true, 'backend_configure' => true, 'css' => true )); @@ -59,16 +59,16 @@ class serendipity_event_nl2br extends serendipity_event function cleanup() { global $serendipity; - + /* check possible config mismatch setting in combination with ISOBR */ - if ( serendipity_db_bool($this->get_config('isobr')) === true ) { - if( serendipity_db_bool($this->get_config('clean_tags')) === true ) { + if ( serendipity_db_bool($this->get_config('isobr')) === true ) { + if( serendipity_db_bool($this->get_config('clean_tags')) === true ) { $this->set_config('clean_tags', false); echo '
'; echo sprintf(PLUGIN_EVENT_NL2BR_CONFIG_ERROR, 'clean_tags', 'ISOBR') . '
'; return false; } - if ( serendipity_db_bool($this->get_config('p_tags')) === true ) { + if ( serendipity_db_bool($this->get_config('p_tags')) === true ) { $this->set_config('p_tags', false); echo '
'; echo sprintf(PLUGIN_EVENT_NL2BR_CONFIG_ERROR, 'p_tags', 'ISOBR') . '
'; @@ -76,7 +76,7 @@ class serendipity_event_nl2br extends serendipity_event } } /* check possible config mismatch setting in combination with P_TAGS */ - if ( serendipity_db_bool($this->get_config('p_tags')) === true && serendipity_db_bool($this->get_config('clean_tags')) === true ) { + if ( serendipity_db_bool($this->get_config('p_tags')) === true && serendipity_db_bool($this->get_config('clean_tags')) === true ) { $this->set_config('clean_tags', false); echo '
'; echo sprintf(PLUGIN_EVENT_NL2BR_CONFIG_ERROR, 'clean_tags', 'P_TAGS') . '
'; @@ -85,6 +85,23 @@ class serendipity_event_nl2br extends serendipity_event return true; } + function example() { + echo '

PLEASE NOTE the implications of this markup plugin:

+

This plugin transfers linebreaks to HTML-linebreaks, so that they show up in your blog entry.

+

In two cases this can raise problematic issues for you:

+
    +
  • if you use a WYSIWYG editor to write your entries. In that case, the WYSIWYG editor already inserts proper HTML linebreaks, so the nl2br plugin would actually double those linebreaks.
  • +
  • if you use any other markup plugins in conjunction with this plugin that already translate linebreaks. The TEXTILE and MARKDOWN plugins are examples for plugins like these.
  • +
+

To prevent problems, you should disable the nl2br plugin on entries globally or per entry within the "Extended properties" section of an entry, if you have the entryproperties plugin installed.

+

Generally advice: The nl2br plugin only makes sense if you

+
    +
  • A) do not use other markup plugins or
  • +
  • B) you do not use the WYSIWYG editor or
  • +
  • C) you only want to apply linebreak transformations on comments to your blog entries, and do not allow any possible markup of other plugins that you only use for blog entries.
  • +
'."\n"; + } + function install() { serendipity_plugin_api::hook_event('backend_cache_entries', $this->title); } @@ -187,7 +204,7 @@ class serendipity_event_nl2br extends serendipity_event if ($clean_tags === null) { $clean_tags = serendipity_db_bool($this->get_config('clean_tags')); } - + if (isset($hooks[$event])) { switch($event) { case 'frontend_display': @@ -204,13 +221,12 @@ class serendipity_event_nl2br extends serendipity_event $serendipity['nl2br']['entry_disabled_markup'] = true; } - // don't add additional br or p tags, if the wysiwyg-editor, the textile, or markdown plugin already took care about markup - if($markup) { - if ( ($serendipity['wysiwyg'] && serendipity_userLoggedIn()) || - ($serendipity['nl2br']['entry_disabled_markup'] === false && (class_exists('serendipity_event_textile') || class_exists('serendipity_event_markdown'))) ) { - return true; - } + // don't run, if the textile, or markdown plugin already took care about markup + if ($markup && $serendipity['nl2br']['entry_disabled_markup'] === false && (class_exists('serendipity_event_textile') || class_exists('serendipity_event_markdown'))) { + return true; } + // NOTE: the wysiwyg-editor needs to send its own ['properties']['ep_no_nl2br'] to disable the nl2br() parser! + // check for users isolation tags if ($isolate === null) { $isolate = $this->get_config('isolate'); @@ -226,14 +242,14 @@ class serendipity_event_nl2br extends serendipity_event $isolate = false; } } - + foreach ($this->markup_elements as $temp) { if (serendipity_db_bool($this->get_config($temp['name'], true)) && isset($eventData[$temp['element']]) && !$eventData['properties']['ep_disable_markup_' . $this->instance] && !in_array($this->instance, (array)$serendipity['POST']['properties']['disable_markups']) && !$eventData['properties']['ep_no_nl2br'] && !isset($serendipity['POST']['properties']['ep_no_nl2br'])) { - + $element = $temp['element']; if ($p_tags) { $eventData[$element] = $this->nl2p($eventData[$element]); @@ -248,12 +264,12 @@ class serendipity_event_nl2br extends serendipity_event $eventData[$element] = $this->restore($eventData[$element]); // unset nl tagline, if is $eventData[$element] = str_replace(array("", "
", "
", ""), "", $eventData[$element]); - } else { + } else { $eventData[$element] = nl2br($eventData[$element]); } } /* this is an option if not using new isobr default config setting */ - if (!$p_tags && $isobr === false && $clean_tags === true) { + if (!$p_tags && $isobr === false && $clean_tags === true) { // convert line endings to Unix style, if not already done $eventData[$element] = str_replace(array("\r\n", "\r"), "\n", $eventData[$element]); // clean special tags from nl2br @@ -267,18 +283,18 @@ class serendipity_event_nl2br extends serendipity_event case 'backend_configure': // check single entry for temporary disabled markups - if( $isobr ) { + if( $isobr ) { $serendipity['nl2br']['iso2br'] = true; // include to global as also used by staticpages now - if (!is_object($serendipity['smarty'])) { + if (!is_object($serendipity['smarty'])) { serendipity_smarty_init(); // if not set to avoid member function assign() on a non-object error, start Smarty templating } - + // hook into default/admin/entries.tpl somehow via the Heart Of Gold = serendipity_printEntryForm() before! it is loaded $serendipity['smarty']->assign('iso2br', true); } - - + + return true; break; @@ -298,7 +314,7 @@ p.break { ]*>)()%is"; } - + if(sizeof($br2nl)) $entry = preg_replace($br2nl, '\\1\\2\\3', $entry); return $entry; @@ -348,7 +364,7 @@ p.break { //DOS to Unix and Mac to Unix $text = str_replace(array("\r\n", "\r"), "\n", $text); $text = str_split($text); - + $big_p = '

'; $small_p = '

'; @@ -360,14 +376,14 @@ p.break { unset($text[$i-1]); } - //main operation: convert \n to big_p and small_p + //main operation: convert \n to big_p and small_p while ($i > 0) { if ($insert) { $i = $this->next_nl_block($i, $text); if ($i == 0) { //prevent replacing of first character break; - } + } if ($whiteline == true) { $text[$i] = '

' . $big_p; } else { @@ -377,7 +393,7 @@ p.break { $insert = false; } else { if ($text[$i-1] === "\n") { - //newline is follower of a newline + //newline is follower of a newline $whiteline = true; } $insert = true; @@ -453,9 +469,9 @@ p.break { '-tags from block-elements * Note: Walking from left to right @@ -506,7 +522,7 @@ p.break { } $len = strpos($text, $end_tag, $offset) - $offset; return substr($text, $offset, $len); - } + } /* * Return corresponding end-tag: