Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-6331

Long <a> tags result in whitespace at start of paragraphs

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • cms7-release-7.5.0
    • 2.22.19, 2.24.08
    • None
    • OS X Lion. Mozilla Firefox 13.0.1 & Google Chrome 20

    Description

      When a paragraph contains a hyperlink in Xinha, a bug arises when the tag for that anchor is 75 characters or longer due to a long title and/or target. While the document will appear normal after saving and closing, the next time the page is edited, and a change is made, all paragraphs containing long tags will begin with a single whitespace. This space can then only be removed by editing the html source, and the page will revert once again if any change is made.

      Steps to reproduce
      1) Create a document consisting of paragraphs like

      <p><a title="looooooooooooooooooooooooong title" href="http://www.google.com">75 tag</a></p>
      <p><a title="long long long long long long long long long looooong tag" href="http://www.umd.edu">long long long long long text</a></p>
      <p><a title="short tag" href="http://www.longlonglink.long.com/longlong.html">long link</a></p>

      or with any anchor tag 75 characters or longer

      2)Save and close

      3)Edit, make any change, and close

      It seems once a document is saved, a newline is inserted between the <p> and <a> when the <a> tag is sufficiently long, but once the html is processed again, this \n is converted into a space.

      Attachments

        Issue Links

          Activity

            People

              jsheriff Junaidh Kadhar Sheriff
              jrobusto Joshua Robusto (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: