digideskio / zotonic

Automatically exported from code.google.com/p/zotonic
0 stars 0 forks source link

filter_without_embedded_media breaks on multi-language articles #123

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
{error,
    {error,badarg,
        [{re,run,
             [{trans,
                  [{en,<<"<h2>Demonstrating inline images</h2><p><!-- z-media 320 {\"align\": \"right\"} -->This image is aligned to the left. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras rutrum purus eu risus suscipit semper. Quisque dolor velit, accumsan et vulputate vel, convallis a felis. Pellentesque pellentesque posuere turpis, sed consectetur risus blandit a. Mauris nunc nibh, mattis eu dapibus quis, volutpat at magna. Duis facilisis mauris vel nisi tempus ac tincidunt lectus hendrerit. Phasellus eleifend ultrices tempus. Phasellus imperdiet dictum orci sit amet euismod. Suspendisse in nulla nibh, id iaculis sapien. Ut dictum scelerisque magna nec convallis. Nullam eget justo nec lacus vulputate condimentum. Now comes a block image:</p><p><!-- z-media 320 {\"align\": \"left\"} -->This image is aligned to the right. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras rutrum purus eu risus suscipit semper. Quisque dolor velit, accumsan et vulputate vel, convallis a felis. Pellentesque pellentesque posuere turpis, sed consectetur risus blandit a. Mauris nunc nibh, mattis eu dapibus quis, volutpat at magna. Duis facilisis mauris vel nisi tempus ac tincidunt lectus hendrerit. Phasellus eleifend ultrices tempus. Phasellus imperdiet dictum orci sit amet euismod. Suspendisse in nulla nibh, id iaculis sapien. Ut dictum scelerisque magna nec convallis. Nullam eget justo nec lacus vulputate condimentum.</p><!--   commented out for now, because the styling is non-optimal &lt;h2&gt;Various lists&lt;/h2&gt;  &lt;p&gt;Some of the default list styles:&lt;/p&gt;  &lt;ol&gt;     &lt;li&gt;I am an ordered list.         &lt;ol&gt;             &lt;li&gt;This is a sublist of the ordered list.&lt;/li&gt;             &lt;li&gt;Another listitem&lt;/li&gt;         &lt;/ol&gt;     &lt;/li&gt;     &lt;li&gt;Yes, I really am an ordered list.&lt;/li&gt;     &lt;li&gt;Enough content for now.&lt;/li&gt; &lt;/ol&gt;  &lt;ul&gt;     &lt;li&gt;I am an unordered list.&lt;/li&gt;     &lt;li&gt;Yes, I really am an unordered list.&lt;/li&gt;     &lt;li&gt;Foo, bar basz&lt;/li&gt;     &lt;li&gt;Enough content for now.&lt;/li&gt; &lt;/ol&gt; --><h2>Vimeo video</h2><p>The video you all have been waiting for:</p><p><!-- z-media 322 {\"align\": \"block\"} --></p>">>},
                   {fr,<<>>},
                   {tr,<<>>}]},
              "<!-- z-media ([0-9]+) ",
              [global,{capture,all_but_first,list}]]},
         {filter_without_embedded_media,without_embedded_media,3},
         {template_default__home_arjan_devel_zotonic_priv_sites_default_templates_article_tpl,
             render2,2},
         {template_default__home_arjan_devel_zotonic_priv_sites_default_templates_article_tpl,
             render,2},
         {z_template,render1,4},
         {resource_page,html,1},
         {resource_page,to_html,2},
         {webmachine_resource,resource_call,3}]}}

Original issue reported on code.google.com by scherpenisse on 10 Nov 2010 at 12:32

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 3da277531e.

Original comment by ma...@pobox.com on 10 Nov 2010 at 1:00