Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4290996

JEditorPane is not rendering footnotes in RTF.

XMLWordPrintable

      Footnotes are not working for RTF mode in JEditorPane. The following file demonstrates this. Use something like StarOffice to see how it should render it.

      -----------------------

      {\rtf1\ansi\deff0
      {\fonttbl{\f0\froman\fprq2 Times New Roman;}}
      {\colortbl\red0\green0\blue0;\red255\green255\blue255;\red128\green128\blue128;}
      {\stylesheet{\s1\snext1 Standard;}
      {\s2\li283\ri0\fi-283\fs20\sbasedon1\snext2 Footnote;}
      {\*\cs4 Footnote Symbol;}
      }
      {\info{\creatim\yr1999\mo11\dy9\hr15\min14}{\revtim\yr1601\mo1\dy1\hr0\min0}{\printim\yr1601\mo1\dy1\hr0\min0}{\comment StarWriter}{\vern5170}}\deftab720
      {\*\pgdsctbl
      {\pgdsc0\pgdscuse195\pgwsxn6336\pghsxn6768\pgdscnxt0 Standard;}}
      \paperh6768\paperw6336\margl0\margr0\margt0\margb0\sectd\sbknone\pgwsxn6336\pghsxn6768\ftnbj\ftnstart1\ftnrstcont\ftnnar\aenddoc\aftnrstcont\aftnstart1\aftnnrlc
      \pard\plain \s1\ul\b Footnotes Test
      \par
      \par \pard\plain \s1\ulnone Expected Results{\super \chftn{\*\footnote \chftn\pard\plain \s2\li283\ri0\fi-283\fs20 You should be able to see this footnote.}}
      : You should be able to see the assigned footnote at the bottom{\super \chftn{\*\footnote \chftn\pard\plain \s2\li283\ri0\fi-283\fs20 You should be able to see this footnote as well.}}
      . There should be 2 footnotes.
      \par }

      ----------------------

      edmund.lou@eng 1999-11-12

            idk Igor Kushnirskiy (Inactive)
            elousunw Edmund Lou (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: