Pergunta

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>?

Foi útil?

Solução

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

here \r?\n match a line break

enter image description here

Outras dicas

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top