Merge pull request #341 from equwal/delete-trailing-whitespace

Delete obviously erroneous (and often annoying) trailing whitespace.
This commit is contained in:
Andrea Crotti 2019-11-17 17:30:47 +00:00 committed by GitHub
commit 2cc5f35cd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
23 changed files with 24 additions and 24 deletions

View File

@ -17,5 +17,5 @@
publisher = {${publisher}}}${, publisher = {${publisher}}}${,
note = {${note}}} note = {${note}}}
} }
$0 $0

View File

@ -1,5 +1,5 @@
# -*- mode: snippet -*- # -*- mode: snippet -*-
# name: using namespace ... # name: using namespace ...
# key: using # key: using
# -- # --
using namespace ${std}; using namespace ${std};

View File

@ -10,5 +10,5 @@ user "${1:random}" do
home "${5:/home/random}" home "${5:/home/random}"
shell "${6:/bin/zsh}" shell "${6:/bin/zsh}"
password "${7:\$1\$JJsvHslV\$szsCjVEroftprNn4JHtDi.}" password "${7:\$1\$JJsvHslV\$szsCjVEroftprNn4JHtDi.}"
supports :manage_home =>manage_home true supports :manage_home =>manage_home true
end end

View File

@ -15,7 +15,7 @@ ${5:public} class ${1:Name}
/// <summary> /// <summary>
/// ${4:Default Destructor} /// ${4:Default Destructor}
/// </summary> /// </summary>
public ~$1() public ~$1()
{ {
} }

View File

@ -1,5 +1,5 @@
# -*- mode: snippet -*- # -*- mode: snippet -*-
# name: enum … { … } # name: enum … { … }
# key: enum # key: enum
# -- # --
enum ${1:name} enum ${1:name}

View File

@ -1,5 +1,5 @@
# -*- mode: snippet -*- # -*- mode: snippet -*-
# name: try … finally … # name: try … finally …
# key: tryf # key: tryf
# -- # --
try try

View File

@ -3,7 +3,7 @@
# contributor : Xah Lee # contributor : Xah Lee
# -- # --
;; idiom for processing a list of files in dired's marked files ;; idiom for processing a list of files in dired's marked files
;; suppose myProcessFile is your function that takes a file path ;; suppose myProcessFile is your function that takes a file path
;; and do some processing on the file ;; and do some processing on the file

View File

@ -6,7 +6,7 @@
"Replace “<” to “&lt;” and other chars in HTML. "Replace “<” to “&lt;” and other chars in HTML.
This works on the current region." This works on the current region."
(interactive "r") (interactive "r")
(save-restriction (save-restriction
(narrow-to-region start end) (narrow-to-region start end)
(goto-char (point-min)) (goto-char (point-min))
(while (search-forward "&" nil t) (replace-match "&amp;" nil t)) (while (search-forward "&" nil t) (replace-match "&amp;" nil t))

View File

@ -4,7 +4,7 @@
# key: x-dired # key: x-dired
# -- # --
;; idiom for processing a list of files in dired's marked files ;; idiom for processing a list of files in dired's marked files
;; suppose myProcessFile is your function that takes a file path ;; suppose myProcessFile is your function that takes a file path
;; and do some processing on the file ;; and do some processing on the file

View File

@ -7,7 +7,7 @@
"Replace “<” to “&lt;” and other chars in HTML. "Replace “<” to “&lt;” and other chars in HTML.
This works on the current region." This works on the current region."
(interactive "r") (interactive "r")
(save-restriction (save-restriction
(narrow-to-region start end) (narrow-to-region start end)
(goto-char (point-min)) (goto-char (point-min))
(while (search-forward "&" nil t) (replace-match "&amp;" nil t)) (while (search-forward "&" nil t) (replace-match "&amp;" nil t))

View File

@ -1,6 +1,6 @@
# -*- mode: snippet -*- # -*- mode: snippet -*-
# contributor : Jimmy Wu <frozenthrone88@gmail.com> # contributor : Jimmy Wu <frozenthrone88@gmail.com>
# name:<script type="text/javascript">...</script> # name:<script type="text/javascript">...</script>
# -- # --
<script type="text/javascript"> <script type="text/javascript">
$0 $0

View File

@ -1,5 +1,5 @@
# -*- mode: snippet -*- # -*- mode: snippet -*-
# contributor : Jimmy Wu <frozenthrone88@gmail.com> # contributor : Jimmy Wu <frozenthrone88@gmail.com>
# name:<script type="text/javascript" src="..."></script> # name:<script type="text/javascript" src="..."></script>
# -- # --
<script type="text/javascript" src="$1"></script> <script type="text/javascript" src="$1"></script>

View File

@ -5,4 +5,4 @@
\IF {$${1:cond}$} \IF {$${1:cond}$}
$0 $0
\ELSE \ELSE
\ENDIF \ENDIF

View File

@ -10,6 +10,6 @@
]{4in}{4in}{${2:video file}} ]{4in}{4in}{${2:video file}}
\movieref[rate=3]{test}{Play Fast} \movieref[rate=3]{test}{Play Fast}
\movieref[rate=1]{test}{Play Normal Speed} \movieref[rate=1]{test}{Play Normal Speed}
\movieref[rate=0.2]{test}{Play Slow} \movieref[rate=0.2]{test}{Play Slow}
\movieref[resume]{test}{Pause/Resume} \movieref[resume]{test}{Pause/Resume}

View File

@ -3,6 +3,6 @@
# key: sf # key: sf
# -- # --
\subfigure[${1:caption}]{ \subfigure[${1:caption}]{
\label{fig:${2:label}} \label{fig:${2:label}}
\includegraphics[width=.${3:3}\textwidth]{${4:path}}} \includegraphics[width=.${3:3}\textwidth]{${4:path}}}
$0 $0

View File

@ -5,7 +5,7 @@
\begin{figure}[ht] \begin{figure}[ht]
\centering \centering
\subfigure[$1] \subfigure[$1]
{\label{fig:${2:label}} {\label{fig:${2:label}}
\includegraphics[width=.${3:5}\textwidth]{${4:path}}} \includegraphics[width=.${3:5}\textwidth]{${4:path}}}
\caption{${5:caption}} \caption{${5:caption}}

View File

@ -3,7 +3,7 @@
# key: do # key: do
# -- # --
(do ((${1:var1} ${2:init-form} ${3:step-form}) (do ((${1:var1} ${2:init-form} ${3:step-form})
(${4:var2} ${5:init-form} ${6:step-form})) (${4:var2} ${5:init-form} ${6:step-form}))
(${7:condition} ${8:return-value}) (${7:condition} ${8:return-value})
(${9:body})) (${9:body}))
$0 $0

View File

@ -2,7 +2,7 @@
# name: dot # name: dot
# key: dot_ # key: dot_
# -- # --
#+begin_src dot :file ${1:file} :cmdline -T${2:pdf} :exports none :results silent #+begin_src dot :file ${1:file} :cmdline -t${2:pdf} :exports none :results silent
$0 $0
#+end_src #+end_src
[[file:${3:path}]] [[file:${3:path}]]

View File

@ -1,7 +1,7 @@
# -*- mode: snippet -*- # -*- mode: snippet -*-
# name: uml # name: uml
# key: uml # key: uml
# contributor : Robert O'connor # contributor : Robert O'Connor
# -- # --
#+begin_uml #+begin_uml
$1 $1

View File

@ -1,6 +1,6 @@
# -*- mode: snippet -*- # -*- mode: snippet -*-
#Author : Jonas Bonèr <jonas@jonasboner.com> #Author : Jonas Bonèr <jonas@jonasboner.com>
# name: case pattern => # name: case pattern =>
# key: case # key: case
# -- # --
case ${1:_} => $0 case ${1:_} => $0

View File

@ -6,6 +6,6 @@
try { try {
$0 $0
} catch { } catch {
case e: ${1:Throwable} => case e: ${1:Throwable} =>
${2:// TODO: handle exception} ${2:// TODO: handle exception}
} }

View File

@ -2,10 +2,10 @@
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx> # contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
# name: create table ... # name: create table ...
# -- # --
CREATE TABLE [${1:dbo}].[${2:TableName}] CREATE TABLE [${1:dbo}].[${2:TableName}]
( (
${3:Id} ${4:INT IDENTITY(1,1)} ${5:NOT NULL} ${3:Id} ${4:INT IDENTITY(1,1)} ${5:NOT NULL}
$0 $0
CONSTRAINT [${6:PK_}] PRIMARY KEY ${7:CLUSTERED} ([$3]) CONSTRAINT [${6:PK_}] PRIMARY KEY ${7:CLUSTERED} ([$3])
) )
GO GO

View File

@ -2,7 +2,7 @@
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx> # contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
# name: create procedure ... # name: create procedure ...
# -- # --
CREATE PROCEDURE [${1:dbo}].[${2:Name}] CREATE PROCEDURE [${1:dbo}].[${2:Name}]
( (
$3 $4 = ${5:NULL} ${6:OUTPUT} $3 $4 = ${5:NULL} ${6:OUTPUT}
) )