Menu ▾ ▴

Exporting in HTML and HTML-formatted Text

Wolfgang
2009-01-04
2013-04-12
  • Wolfgang

    Wolfgang - 2009-01-04

    When exporting as XHTML (incl. linked image) and using the css-File freemind2html.css HTML-formatted nodes are shown in a different way than nodes with plain text.
    This happens, because for the HTML-formatted nodes an addidtional 'p'-tag is outputted.

    CSS has a way to solve this problem. The solution is given below. Simply add these lines to freemind2html.css. That file can be found in .../freemind/acessories/ (windows: ..\Programme\Freemind\acessories\freemind2html.css)

    Tested with opera/IE7 and Firefox 2.0.0.19

    Maybe Christian could fix this for the final 0.9 ?

    hopes
      Wolfgang

    And here the simple fix:

    Add the following lines to freemind2html.css (position is irrelevant, I used the end of the file)
    ------------------------
    div.nodecontent > p {
        margin-top:0pt;
        margin-bottom:0pt;
        display: inline;
    }
    --------------------

     
    • Wolfgang

      Wolfgang - 2009-01-04

      If the lines mentioned in the above post are added to 'treestyles.css' also, the export to XHTML (javascript) looks better also.

      Wolfgang

       
    • Christian Foltin

      Hi,

      nice, but this removes all paragraphs, not only the surrounding ones. Any solution?

      Chris

       
    • Wolfgang

      Wolfgang - 2009-01-08

      Hi,

      should not do that. Do you have an example.mm?
      I'll check (and fix) it

      Which Browser? Which OS?

        Wolfgang

       
    • Wolfgang

      Wolfgang - 2009-01-09

      I hate to admit it, but Christian was right

      Obviously a bug. Better use these lines:

      ---snip------------------------
      div.nodecontent > p {
          margin-top:0pt;
          margin-bottom:0pt;
          display:inline;
      }

      p + p {
           margin-top: 0.5em !important;
          display:block !important;
      }
      ---snap-----------
      The second command (p+p) handles several consecutive 'p'-Tags

       

Log in to post a comment.