At 10:58 -0700 on 03/22/2010, RobS wrote about Re: Fix Implicitly
Closed Tags script needeed for XHTML:
To complete my example, and to clarify the confusion, I want the
closing span to always be just in front of the tag -- be it <br /> or
</p> -- at the end of each line. So this is the desired result...
<p>First line<br />
another line<br />
<span class="ind2">another line</span><br />
another line<br />
<span class="ind2">last line.</span></p>
While I can not come up with a grep command to do this, I feel it
might be simpler to grab everything from the <span tag to the end of
line and then output the </span> AFTER the captured data (ie: as the
start of the NEXT line). This way the end of line tag can be either a
<br /> or a </p>. You output the </span> tag followed by a another
end of line so it is a complete line.
--
Robert A. Rosenberg
RAR Programming Systems Ltd.
Home: 845-357-0931
Cell: 646-479-1984
Fax: 646-349-4025
--
You received this message because you are subscribed to the
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem,
please email "[email protected]" rather than posting to the group.
To unsubscribe from this group, send email to bbedit+unsubscribegooglegroups.com or reply
to this email with the words "REMOVE ME" as the subject.