Regularly getting HTML BR into my sourcecode tags

  • Unknown's avatar

    Over the last weeks or so, I tend to see more and more HTML BR into my sourcecode tags.

    My usage pattern contains frequent saves, switching between Text/Visual, etc. No definite reproducible case yet, but if I find one, I will follow up.

    Example:

    [sourcecode language="pascal"]
    procedure TTemporaryCursorMainForm.TemporaryCursorButtonClick(Sender: TObject);
    var
    Button: TButton;
    SavedEnabled: Boolean;
    begin
    Button := Sender as TButton;
    SavedEnabled := Button.Enabled; // save state
    try
    Button.Enabled := False; // set state
    Sleep(3000); // sleep 3 seconds with the button disabled
    finally
    Button.Enabled := SavedEnabled; // restore state
    end;
    end;
    [/sourcecode]

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    I tagged this thread for Staff assistance. Please subscribe to it so you are notified when they respond.

  • Unknown's avatar

    Could you please send the link of the post or page you pasted that code in?

    Thank you.

  • Unknown's avatar

    Not sure which that one was as I write a ton of them. It happens frequently but I could not find it in my draft history.

    Probably a post like this would have been affected: http://wiert.me/2014/08/10/windows-xp-restore-points-and-a-corrupted-system-registry

    From what I recall (I’m changing my editing style to save more drafts):

    – I switch a lot between Visual/Text mode (there seem to be various issues with that, especially when doing xml/html like stuff in sourcecode blocks; see some of my previous forum entries)

    – I do virtually all of my editing on a MacBook Retina using the latest Chrome

    – I copy/paste text from both the Mac itself, Windows VMs running within VMware Fusion and Windows remote machines through Remote Desktop Connection

    – I paste sourcecode exclusively in the Text view (as the Visual view usually messes up the formatting) then switch to Visual view to see if it looks all right, then continue post-editing in the Text view, then doing marking up the visual view.

  • Unknown's avatar

    Two other posts from that time frame:

    Delphi: a memento that executes any code at end of method

    Delphi: using IInterface to restore cursor at end of mehod (prelude to a memento that executes any code at end of method).

    Again: no drafts so I cannot compare where the HTML breaks got introduced and removed.

    I will try to save more drafts and see if I can pinpoint things down to a certain set of steps that will most likely fail.

  • Unknown's avatar

    I can’t seem to detect any oddities or trends in your posts.

    I will try to save more drafts and see if I can pinpoint things down to a certain set of steps that will most likely fail.

    That would be great. Looking forward to that.

  • The topic ‘Regularly getting HTML BR into my sourcecode tags’ is closed to new replies.