# Remove Trailing Whitespaces from Project.md
# Copyright (c) 2019 Evandro Coan
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
To do this changes fast I used a Sublime Text vanilla install, set the settings:
{
"ensure_newline_at_eof_on_save": true,
"trim_trailing_white_space_on_save": true,
}
Then do a Replace all Ctrl+Shif+F
with the:
- Regex search
^\A(.*)$
- Folder
Packages\latextools
- Replace by
\1
It will open all files from LatexTools with the buffer dirt, but not modification, then you just do the File -> Save All
command. And Sublime Text will save all files trimming the whitespaces and ensuring a new line at the end of the file.
See also: