|I have been redesigning several old batch files to redirect their output to HTML. |
Most of the redirects work fine, but of some not so fine.
Sometime the output adds an extra carriage return between lines, which is fine on some occasions.
The following code snippet is one that produces the extra line(s). I want the extra line after the title, but not after each individual line.
How do I prevent these extra lines?
for /f "delims=" %%a in ('ipconfig /all') do (
echo ^<pre^>^<span style="font-size: 12pt"^>%%a ^</span^>^</pre^> ) >> test.html