Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-10322

When blog-posts macro displays excerpts, display problem if the blog post contains macro text at the default excerpt point

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 2.5, 2.6.2, 2.7, 5.6.3

    Description

      When using the blog-posts macro with content=excerpts option, the display of a blog post can show wiki markup if the blog post contains a macro whose content falls within the default text cut off for excerpts.

      For example, my blog-posts macro declaration looks like this:
      {blog-posts:time=7d|spaces=@all|labels=broadcast|content=excerpts}

      This displays a news item excerpt that contains three HTML links in the form: [2CHLJ|http://host:port/s/lookup?bug_number=2CHLJ]. The first two are shown correctly (as outbound links) in the blog post listing, but the third link shows a subset of the wiki link notation specified above. I think this is because the default blog-post excerpt text length falls within the text inside the macro.

      The default excerpt length for the blog-posts macro should count text after all wiki markup is evaluated to HTML, rather than internal macro text.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              01fc6e9af467 Jim Dibble
              Votes:
              16 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

                Created:
                Updated: