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

Text formatting breaks when formatted text includes smart quotes

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 2.0
    • 1.4.2
    • None
    • Not sure. Can find out if neccessary.

      When certain text including smart quotes is pasted into the edit window for a page, and formatting (like bold, italic, strike, or under) is applied to that text, the resulting page will show the formatting macro characters, and no formatting is applied.

      For example, this text should be italicized in the previewed page:

      importantSomehow "textInSmartQuotes" importantSomehow

      However, the _'s will be visible instead, and the text is not italicized.

            [CONFSERVER-3819] Text formatting breaks when formatted text includes smart quotes

            Please don't reopen old bugs. If something resurfaces, then it is a new bug, and needs separate treatment, and a separate issue.

            Per Fragemann [Atlassian] added a comment - Please don't reopen old bugs. If something resurfaces, then it is a new bug, and needs separate treatment, and a separate issue.

            BenjaminA added a comment -

            This seems to have resurfaced.

            I am trying to bold some text that contains a single smart quote ' and it stops rendering the text as bold and just renders the text as TEXT'TEXT with the astericks being rendered in full rather than hidden.

            BenjaminA added a comment - This seems to have resurfaced. I am trying to bold some text that contains a single smart quote ' and it stops rendering the text as bold and just renders the text as TEXT'TEXT with the astericks being rendered in full rather than hidden.

            Guy: You might enter a separate bug on what you're seeing with the "?" characters. It's most likely a page encoding issue.

            I'm seeing no such behavior with the smart quotes, and my issue is that formatting macros don't work when smart quotes are present, not with whether the smart quote characters themselves are preserved correctly.

            Wade Dorrell added a comment - Guy: You might enter a separate bug on what you're seeing with the "?" characters. It's most likely a page encoding issue. I'm seeing no such behavior with the smart quotes, and my issue is that formatting macros don't work when smart quotes are present, not with whether the smart quote characters themselves are preserved correctly.

            I had this exact same problem with two site's I've recently worked on, both at:

            http://www.back-academie-de-montreal.com

            (behind the scenes it currently links to bam.adaptavist.com)

            There are also similar problems for Euro and Pound (Sterling) symbols (probably most others) and also the TM symbol, etc. Confluence seems to replace them with ? but not always - it's quite odd. For example, if I add a new page with the TM symbol, it seems to work, for a while - when I edit the page, or come back to it a few days later, it stops working.

            Guy Fraser [Adaptavist.com] added a comment - I had this exact same problem with two site's I've recently worked on, both at: http://www.back-academie-de-montreal.com (behind the scenes it currently links to bam.adaptavist.com) There are also similar problems for Euro and Pound (Sterling) symbols (probably most others) and also the TM symbol, etc. Confluence seems to replace them with ? but not always - it's quite odd. For example, if I add a new page with the TM symbol, it seems to work, for a while - when I edit the page, or come back to it a few days later, it stops working.

            Tom Davies added a comment -

            You can test this with the markup: foo “bar” baz

            Tom Davies added a comment - You can test this with the markup: foo “bar” baz

            Please note, JIRA seems to have changed the smart quotes in my example into normal quotes. (And thus the example text, if pasted into a Confluence edit page textbox, will not reproduce the problem.)

            I suggest retyping the same text in Microsoft Word, and copying-pasting that text into the edit page textbox. (This is how I original experienced the issue, and why I think it's important... often our content comes from Word documents or Outlook emails, which seem to use smart quotes for everything.)

            Wade Dorrell added a comment - Please note, JIRA seems to have changed the smart quotes in my example into normal quotes. (And thus the example text, if pasted into a Confluence edit page textbox, will not reproduce the problem.) I suggest retyping the same text in Microsoft Word, and copying-pasting that text into the edit page textbox. (This is how I original experienced the issue, and why I think it's important... often our content comes from Word documents or Outlook emails, which seem to use smart quotes for everything.)

              Unassigned Unassigned
              c9f06c1f84e6 Wade Dorrell
              Affected customers:
              1 This affects my team
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: