• Here’s a portion of a post I made in my WordPress blog

    <pre>
    Sub CloseExceptActiveNonCode()
    ‘Description: Closes all editor windows except the current one and non code windows (start, output).
    Dim doc As Document
    Dim activeDoc As String
    activeDoc = ActiveDocument.FullName

    For Each doc In DTE.Documents()
    If activeDoc <> doc.FullName And doc.FullName.IndexOf(“.”) <> -1 Then
    doc.Close(vsSaveChanges.vsSaveChangesPrompt)
    End If
    Next
    End Sub
    </pre>
    —————-

    And here’s the html that WordPress generated for the post.

    <pre> Sub CloseExceptActiveNonCode()
    ‘Description: Closes all editor windows except the current one and non code windows (start, output).
    Dim doc As Document
    Dim activeDoc As String
    activeDoc = ActiveDocument.FullName
    For Each doc In DTE.Documents()

    If activeDoc <> doc.FullName And doc.FullName.IndexOf(“.”) <> -1 Then
    doc.Close(vsSaveChanges.vsSaveChangesPrompt)
    End If
    Next
    End Sub
    </pre>

    —————–

    WordPress (probably texturize) is adding the <p> tags. This occurs whereever there are consecutive line breaks. Is this a bug?

    — mike

Viewing 1 replies (of 1 total)
  • Thread Starter ups

    (@ups)

    Ok, I see after the fact that there has been some discussion on this before. I searched for “& lt;pre” instead of <pre to find the previous conversations.

    Anyways, is there any update on this issue?

Viewing 1 replies (of 1 total)
  • The topic ‘<pre> handling in WordPress’ is closed to new replies.