Question

Line breaks after <td> tags in aspx pages cause line breaks to be output in the html causing text to expand into multi lines.

Is there a way in Visual Studio, Resharper or online formatter which removes these type of line feeds? I don't want to remove every single line feed.. just the ones after<td>?

Était-ce utile?

La solution

Try using Regex in Find-and-Replace in Visual Studio.

here \r?\n match a line break

enter image description here

Autres conseils

You could open your source files in SublimeText, do a find->replace. Enable regular expressions (the .* button) and then use these values:

find: \n replace:

Sorry I don't have a VisualStudio related solution

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top