Edit HTML whitespace bug

I tried searching by a variety of terms (HTML, h2, element, tag, whitespace) to see if this has already been covered, but I did not get any relevant hits. The Wiki server software has been pretty solid once I figured out the internals and got it set up. However, this is a highly annoying bug for our day-to-day usage.
I encourage our Wiki editors to learn and use straight HTML. That's how I learned and they seem to be capable of understanding it. However, every time we toggle from browser display mode to HTML view while editing a page, several lines of whitespace are added before any close header element tag (e.g. ). It makes the source code nearly unreadable after just a few toggles. It is also manually intensive to erase it every time.
Anyone have an idea on a fix for this? I have seen it happen on tags of a few other types, such as , although I couldn't list with certainty all tags that exhibit the bug. Should be a simple fix on Apple's part?

I have found a reasonable explanation for this problem, which is helping me to avoid it for now.
Formatting with the WYSIWYG buttons, for example changing some paragraph text to a header element (H2), produces the following HTML:
Header Text
I am not sure that this is syntactically correct, because a header element is already block level, so you could just style it to increase padding, or place the line break after the closing tag, but I digress.
This HTML created by the Wiki does not exhibit the bug I described. However, if I remove the
tag and toggle into HTML mode, the javascript (or whatever) will try to insert a line break.
It's as if it is trying to clean up the HTML, but it is adding the character in the wrong mode of the editor. I'm getting whitespace in my HTML, instead of in the rendered layout view.
The solution is to leave the header elements as they were created. I was importing content from old documents, so I had the HTML already written in another editor.

Similar Messages

  • Editing HTML file leaves temporary files lying about the place

    G'day
    CFB 2.0.1, installed as stand-alone on Windows 7 Enterprise 64-bit.  Although this has been the case since CFB 1.0, and on various Windows installs.
    Whenever I edit a HTML file (ie: with a .html extension), CFB creates  a temporary file in the same dir, eg: .tmp_charts.html.33659~ (the original file name is charts.html).  I've no problem with this - other than the fact it should not be necessary - but what I do have a problem with is that it does not tidy up after itself once it's done: the tmp files stay there.  This is a bit sloppy.
    I'm sure (100% sure) I've raised with this with Adobe in the past, and raised a bug for it, but it's not on the bug tracker for some reason.
    Can other CFB users test out what happens when they edit HTML files with CFB? Note: the tmp file does not show up in the navigator listing within CFB, but it is there in the file system if one looks with Windows Explorer.
    I'm going to raise a bug again (done: 3328624), in the hope this can be fixed.  It's a minor thing, but I'm sick of accidentally committing rubbish to my source control because I forget CFB can't tidy up after itself.
    Cheers.
    Adam

    Curious.
    Still: they should just not be there in the first place.  They don't appear for any other file type that I am aware of.
    Agreed!
    Come to think of it, I had another issue with CFB leaving bits around a while back.  Ahhh, now I can't remember exactly what the issue was.  I remember it had to do with mapping a networked drive.  When I would map a particular drive letter, say 'W', then start CFB it would create an entire folder hierarchy on there seemingly from a different server.  I know this because we have two different CF environments here; some server are running CF under JRun and others are running CF under WebSphere.  I only noticed this issue because I had mapped one of our JRun servers and all of a sudden it had portions of the WebSphere directory structure on there.  I think it had to do with a workspace in CFB but can't remember for sure.  I fixed it a while back by removing the offending setting in CFB.  Man, wish I could remember exactly what it was...

  • Editing HTML through the browser itself

    Today, I went to JotSpot and reached the following page saying that Safari is not supported [from http://feedback.jot.com/KnownIssues/]:
    Mac Support
    <item>1. Mac support: WYSIWYG will work with the Firefox browser (free, open-source), but not with Safari. Safari does not allow you to edit HTML through the browser itself. Without this capability, we cannot offer WYSIWYG mode.
    Any idea why Apple did not implement this feature? Is it in the roadmap?
    Thanks!
    - Mazzaroth

    I do not know how JotSpot implements online editing, but I have been on sites using Safari which have allowed me to have an html editor with formatting buttons and a choice between wysiwyg and html editors.
    You can always send in a bug report using "Report Bugs to Apple" under the Safari menu.
    And for now, if you want to use JotSpot you can use Firefox.

  • Can't edit .html file in dreamweaver?

    Why can't I edit .html file in Dreamweaver CS 5.5 when it is not attached to a template?
    I have always been able to edit it every other time I have opened the file (since I built the site over two years ago).
    Now each time I try to edit it in Design mode, no matter where I click in the file the whole page gets a dark grey overlay and I can't get a curser.
    I am still able to edit the code directly but I do not want to be restricted.
    The last thing I did the last time I opened the file was paste Google Analytics code in just before the </head> tag. I did this to all the files on the site but this is the only one that isn't working. I have tried taking out this code but it makes no difference.
    I am using a 6 month old Macbook pro.
    Can anyone help me?

    In your stylesheet you have -
    .container {    overflow:hidden; width: 100%;}
    .container2 {   overflow:hidden; width: 646px; margin:0 0 10px 0}
    Try right clicking on the page in Design view and then selecting Element view > Full and see if that helps.

  • Plain Text will not display correctly, how can i edit html?

    Hello,
    my beloved MacBook Pro has been a godsend, however i have found that it is incapable of displaying Plain Text, in Text Edit, Safari (View Source), or Dreamweaver's code view. Thus, i am finding it impossible to view or edit html.
    the way it displays is either all jumbled and overlapping, or spread out over impossible distances. sadly i cannot post a picture.
    we also have a G3 and a G4 in the house, both running 10.3, and they also have the same issue with plain text.
    I have not found any topic on this, here or in google. can someone please help?
    thanks,
    Tobias
    macbook pro 2.33 3GB   Mac OS X (10.4.8)  

    Tom, very kindly, has got me most of the way to a happy ending.
    one or another font file or cache was causing the problem. i removed all fonts from Home/Library/Fonts, then ran FontFinagler, rebooted, and things display correctly.
    now i must figure out how to establish which fonts are suitable suitcases to be used.
    bests,
    tobias
    macbook pro 2.33 3GB    

  • Edit html in JEDITORPANE

    HEllo friends!
    I need your help, for editing html in editorpane.
    I want to create a textarea in which the user type simple text than select some part of it & makes it bold, italic etc. by using an event of button or popup any thing.
    So guide me that which textcomponent provide this , i already used JEditorPane, and insert tags manually but it is not good, if i try to overlap the tags og italic & bold.
    So please help me is this any way pre built to provide these func. of add html tags in jeditorpane & use see the render html test in area.
    than please provide me. at [email protected]
    Thanks
    import javax.swing.*;
    import javax.swing.text.*;
    import javax.swing.text.html.*;
    import javax .swing.border.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.IOException;
    public class TestJEditor extends JFrame {
    Panel p1 = new Panel();
    JButton b1 = new JButton("BOLD");
    JButton b2 = new JButton("ITALIC");
    BorderLayout borderLayout1 = new BorderLayout();
    JScrollPane jScrollPane1 = new JScrollPane();
    JEditorPane jEditorPane1 = new JEditorPane();
    HTMLEditorKit editorKit = new HTMLEditorKit();
    DefaultEditorKit defaultKit = new DefaultEditorKit();
    public TestJEditor() {
    super("Note");
    this.getContentPane().add(p1);
    //jEditorPane1.setEditable(false);
    jEditorPane1.setEditorKit(editorKit);
    p1.setLayout(null);
    p1.add(jScrollPane1);
    jScrollPane1.setBounds(10, 10, 350, 100);
    jScrollPane1.getViewport().add(jEditorPane1, null);
    b1.setBounds(370, 10, 100, 20);
    p1.add(b1);
    b2.setBounds(370, 40, 100, 20);
    p1.add(b2);
    b1.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent e)
         // jEditorPane1.setEditorKit(defaultKit);
         String str = jEditorPane1.getText();
         System.out.println(str);
         String temp = jEditorPane1.getSelectedText();
         if(temp.indexOf("<B>") != 0)
         int start = str.indexOf(temp);
         int end = start + temp.length();
         System.out.println("start "+start+" end "+end);
         str = str.substring(0,start)+"<B>"+str.substring(start,end)+"</B>"+str.substring(end);
         jEditorPane1.setText(str);
         //System.out.println(jEditorPane1.getText());
    b2.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent e)
         String str = jEditorPane1.getText();
         System.out.println(str);
         String temp = jEditorPane1.getSelectedText();
         System.out.println("Italic");
         int start = str.indexOf(temp);
         int end = start + temp.length();
         str = str.substring(0,start)+"<I>"+str.substring(start,end)+"</I>"+str.substring(end);
         jEditorPane1.setText(str);
    public static void main(String[] args) {
    JFrame frame = new TestJEditor();
    frame.setSize(600,500);
    frame.addWindowListener(new WindowAdapter()
    public void windowClosing(WindowEvent e)
    System.exit(0);
    //frame.pack();
    frame.show();
    }

    Hi kashif10,
    JEditorPane or JTextPane are the classes to use. You can have both bold and italic for a text portion.
    See http://java.sun.com/products/jfc/tsc/articles/ for an overview of articles covering the swing text package.
    Or try application SimplyHTML at http://www.lightdev.com/template.php4?id=3 it is open source and has a lot of documentation too.
    Ulrich

  • Issues editing HTML on an existing site.

    I am attempting to replace the existing content in a site's left panel with custom HTML. 
    I refined the HTML working with a new blank subsite and was able to use the "Edit HTML" option directly in the Left Panel without adding a Content Editor Web Part. 
    When I go to the existing site I am unable to get the "Edit HTML" option within the panel itself and when I add a Content Editor Web Part it completely breaks my formatting. 
    Is there any way to apply HTML directly to an existing site panel without using a web part?

    Hi  ,
    According to your description, my understanding is that you want to customize the quick launch of your SharePoint 2010 site.
    For your issue, you can use the SharePoint web interface or SharePoint Designer 2010. You can have a look at the blog:
    http://sharepointpromag.com/sharepoint/four-ways-add-or-remove-quick-launch-menu-control
    http://msdn.microsoft.com/en-us/library/office/ms466994(v=office.14).aspx
    http://office.microsoft.com/en-in/sharepoint-server-help/configure-the-quick-launch-for-site-navigation-HA102130960.aspx
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Edit HTML in Blog

    Hi All,
    Basically I'm fidelling around with the Blog function and I'm trying to add a youtube video to the blog using the HTML code from youtube, and choosing edit html from the toolbar and pasting the code in.
    When I press save the blog is blank. And when I press "edit html" again none of the code that I just pasted is there.
    I'm no shark at html, so am I doing something wrong?

    Emilliard,
    The html you are pasting is blacklisted. It's a security provision that Apple put in place for you. You can override it to allow the html, but you will have to create a custom whitelist on your server.
    First, grab this PDF: http://images.apple.com/server/macosx/docs/ExtendingYour_WikiServer.pdf
    Then read page 33. It references your YouTube problem specifically.
    Good luck,
    RyanR>

  • How do I edit HTML after publishing site?

    What does it mean to edit HTML after publishing the site? How exactly is that done? From another thread, it seems that re-publishing will overwrite that HTML - is that true? Thanks for any insight into this.

    This link may help:
    http://iwebfaq.org/site/iWebAlternativeHTML.html

  • LabVIEW 8.2 Multicolumn Listbox Edit Cell Event Bug

    I've observed an odd behavior with the "Edit Cell?" event with multicolumn listboxes. If the "Edit Position" is set when clicking on the listbox and the "Edit Cell?" event is trapped with discard set to false, when clicking outside of the list box, previous edits are lost.   I have attached a simple example of this bug.
    Attachments:
    Listbox Edit Cell Event Bug.vi ‏19 KB

    Thank you for the update Fran.
    I lost my bet and you earned your stars.
    So it sounds like the issue was the multiple event structures alone.
    I just like to keep track of what the final fixes are.
    Ben
    Message Edited by Ben on 12-06-2006 04:50 PM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to edit html in iWeb

    How can I edit html in iWeb?

    but info was needed on how to edit / add additional coding as no obvious way of designing a typical 'Contact Us' form included in iWeb
    Then you should have said that in your topic.
    And if it did not answer the question, then say so in the same topic.
    Anyway, the HTML Snippet was invented for your purpose.
    So find the Contact Us code, usually a form, and paste it in the HTML Snippet.

  • How can I edit HTML code that was previously inserted?

    Inserting HTML code is easy enough - Object -> Insert HTML...
    But editing the code does not seem possible. It seems that it's necessary to delete the HTML object and reinsert it to make a change. What am I missing?

    Right click. I'm on my phone, but an option like "Edit HTML..." should be among the choices when an HTML embed object is selected.

  • [svn:fx-trunk] 11472: ASDoc edits for l10n bug fixes

    Revision: 11472
    Author:   [email protected]
    Date:     2009-11-05 11:21:49 -0800 (Thu, 05 Nov 2009)
    Log Message:
    ASDoc edits for l10n bug fixes
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Image.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/sliderClasses/Slider.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IToggleButton.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSSelector.as

  • My Firebug doesn't edit HTML, CSS etc.; the only option is "Delete element" or so... FF and Fbug are new versions, FF itself works perfectly. The Edit option looks like dead... Thank you.

    Firebug is supposed to show the changes of the site "in fly" while editing HTML code. But Edit is disabled permanently, only Remove (or Delete) element is functional

    Do you have the DOM Inspector installed?
    *DOM Inspector: https://addons.mozilla.org/firefox/addon/6622

  • Edit HTML text of an existing widget

    Hello
    I added an Instagram widget to my page that is working fine, except I want to see if it is possible to add a border to the photos so that it has a more uniform look. It has been a minute since I've worked in Muse and I have forgotten how to find the area where that HTML text is entered, and subsequently edited. Can someone please shed some light? I believe I would select the widget and then go to a menu in Muse. But there doesn't seem to be that menu item that would allow me to edit a pre-existing widget. Ugh
    As always, any insight would be ever so greatly appreciated.

    I discovered the problem. It's on the right click. And I recently started using a wierd Mac mouse. Haven't figured out the right click. Works fine on a regular mouse. That's where the "edit HTML" option lives. Thanks anyway, all. Best

Maybe you are looking for

  • Exchange 2013 - Missing Emails sent internally

    Can someone please help me diagnose what has happened with the following problem User1 sends an email at 23:18 from his works laptop at home which is connecting to exchange using Outlook Anywhere User1 sends an email to 4 users: "User2, User3, User4,

  • Does remote work with MacBookAir?

    I can't seem to be able to activate Front Row on a 2nd gen MBA with the remote... The remote works fine with an iMac and older Macbook. Any help is greatly appreciated.

  • ProcessID of SQL Query

    Hi, How make for to know the processID of a SQL Query ? What is the link between v$process and v$session and between v$process and v$sql ? Thanks for your help.

  • Please resove the issues?

    1.how  to test (SMS,EMAIL)Alerts? 2.in  file content conversion i have 3 files and 3 difert drives fro ex:  C:/ramu/text.html, d:/anji/des.csv ,e:/reddy/kit.xml files  how  to itake in Sender CC (sender COmmunication Channel) File system access param

  • Replacing hard drive, best way to transfer?

    I bought a new Seagate 640gb, 5400rpm drive today and I was wondering what the best way is to get my data on there. I was going to backup my current drive, take it out, put in the Seagate and use Migration Assistant. Is this a common and safer way, o