Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-15195

Code direction in print view is not defined as "ltr"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 3.2.2-RC1
    • 3.1.10, 3.2.0
    • Styles
    • None

      The content inside the [code] BBcode tag has a direction defined as "ltr" (left to right) even with rtl languages.

      In proSilver, you can find that trick in bidi.css (RTL definitions)

      .rtl code {
      	direction: ltr;
      }
      

      However, that definition is completely absent in print.css, and bidi.css is not loaded in "print view" mode (available in viewtopic and ucp_pm_viewmessage). That means that, if you use a RTL language (such as Arabic or Japanese), the content of code is displayed as a ltr content in normal mode (just like with western languages) but as a rtl content in print view

        1. good.png
          good.png
          5 kB
        2. wrong.png
          wrong.png
          6 kB

            Elsensee Oliver Schramm [X] (Inactive)
            Big Monstro Big Monstro
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: