<pre> handling in WordPress
-
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.FullNameFor 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
- The topic ‘<pre> handling in WordPress’ is closed to new replies.