[geany/geany-plugins] 228876: Merge pull request #670 from Skif-off/geanylua-fix-right-trim-script
Frank Lanitz
git-noreply at xxxxx
Mon Jan 29 06:39:01 UTC 2018
Branch: refs/heads/master
Author: Frank Lanitz <frank at frank.uvena.de>
Committer: GitHub <noreply at github.com>
Date: Mon, 29 Jan 2018 06:39:01 UTC
Commit: 228876b063599b584e630c06a2ddce21719544c4
https://github.com/geany/geany-plugins/commit/228876b063599b584e630c06a2ddce21719544c4
Log Message:
-----------
Merge pull request #670 from Skif-off/geanylua-fix-right-trim-script
GeanyLua: Fix right-trim.lua
Modified Paths:
--------------
geanylua/examples/edit/right-trim.lua
Modified: geanylua/examples/edit/right-trim.lua
4 lines changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -5,9 +5,9 @@
local s=geany.text()
-if (s and string.match(s, "[ \t]\n") )
+if (s and string.match(s, "[ \t][\r\n]") )
then
- geany.text(string.gsub(s,"[ \t]+\n", "\n"))
+ geany.text(string.gsub(s,"([ \t]+)([\r\n]+)", "%2"))
else
geany.message("Right trim:", "Match not found.")
end
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Plugins-Commits
mailing list