Menu

Converting newlines to <BR>?

Help
Coco Larue
2003-06-06
2012-10-11
  • Coco Larue

    Coco Larue - 2003-06-06

    Is there anyway to have phpWiki convert newlines to <br>? 

    IMHO, we shouldn't have to enter %%% after every line -- if I wanted the text to stay on the same line, I'd leave it on the same line in the edit window.

    Isn't the whole point to simplify the process instead of forcing users to use unnecessary markup?

    I searched through the code and found a regex pattern that handles the %%% but couldn't figure out how to nl2br() it...

     
    • Krufty Kruft

      Krufty Kruft - 2004-02-13

      here here!

      This is just fscking stupid.

      In fact stoopid enough to make me want to ditch phpwiki. Leave it for the windowz users...

       
    • Jason Potkanski

      Jason Potkanski - 2004-02-14

      Ignoring the flames...

      There are several ways to implement this:

      A) Finishing-plugin that parses edit text and converts new lines to <br> at the end.

      B) Plugin/function that runs at the commit of an edit that auto-adds %%% where newlines are. Such a plugin would probably add a new check box to the edit page that would allow the old behavior.

      How many of you folks need/desire this feature?

      -Elec

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.