It does make sense to remove the HTML and BODY tags as well. I should have thought of that, myself, doh.

Before we think about disabling a feature like direct editing of the HTML, we should find out if any of our users are already depending on it. There are some people on every open source project that always use the latest builds (as long as they run) and quickly become dependent on the new features. We can't accommodate everyone, obviously, but when possible, we should try to avoid creating problems for our users.

Ray

Reasamp wrote:
*      if (!Util.preferenceIsTrue("writeHead","true"))
*        newText = newText.replaceAll("(?ims)<head>.*?(<body)","$1");

I was thinking about a completely snippet-style display that even removes the <HTML> and <BODY> tags, because they too can contain similar wide-scale attributes inside the tags. So maybe I'd prefer something similar to this: newText = newText.replaceAll("(?ims).*?<body.*?>\\s*(.*)</body.*","$1")
                .replaceAll("(?m)^ {0,4}","");
I know some pathetic formatting (inserting spaces between '<' and 'body') can bypass this regexp, and I can adjust for that if we agree on just the idea.

However, despite it is a rather appealing feature, I do feel that direct editing of HTML source could be disabled for the 0.9.0 release. It does not provide us with anything extra to the basic formatting already available in the Layout View. All the other features that it does/may provide are currently not well supported or supporting them would require us to delay the release far further.

Reasamp

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Freemind-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemind-developer


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Freemind-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemind-developer

Reply via email to