Opened 13 years ago

Closed 12 years ago

#890 closed enhancement (wontfix)

line wrap in HTMLArea.indent

Reported by: ray Owned by: wymsy
Priority: normal Milestone:
Component: Plugin_GetHtml Version:
Severity: normal Keywords:
Cc:

Description

wymsy,

would that be possible?

I would like to have this function in the core

Change History (4)

comment:1 Changed 13 years ago by wymsy

ray,
I'm not sure I understand what you are looking for. Could you give a more detailed description?

comment:2 Changed 13 years ago by ray

OK, was a bit weirdly formulated.

What I meant is that I found it an interesting option when the function HTMLArea.indent from GetHtml could the code after 8o chars or so instead of putting everithing in one line.

The second thought was that I'd like to see it moved from the plugin to htmlarea.js, because it might be useful independently from your getHTML() function to have the choice which getHTML() to use and still have the neat code.

comment:3 Changed 13 years ago by wymsy

I haven't given this a lot of thought, but my first reaction is this would be better as a separate function. HTMLArea.indent relies on a bunch of regular expressions to insert line breaks and indents around specific tags. There is nothing like a character counter or cursor to keep track of line lengths, so building line wrap into HTMLArea.indent would not be easy. But a separate line wrap function could be called at the end of indent to do what you suggest. I don't have time to do the function right now, but if someone writes it I'll be glad to add the call in the getHtml plugin.

comment:4 Changed 12 years ago by ray

  • Resolution set to wontfix
  • Status changed from new to closed
  • Type changed from defect to enhancement

thinking over it maybe the idea isn't so good as I thought

Note: See TracTickets for help on using tickets.