Removed all excess whitespace and standardized line endings.

This commit is contained in:
m3rein
2020-09-05 21:23:16 +02:00
parent caed5bd757
commit 240af4e5e7
219 changed files with 929 additions and 929 deletions

View File

@@ -1466,4 +1466,4 @@ class Interpreter
result = pbExecuteScript(script)
return true
end
end
end

View File

@@ -52,7 +52,7 @@ class Event
end
end
end
# Triggers the event and calls all its event handlers. Normally called only
# by the code where the event occurred. The first argument is the sender of
# the event, the other arguments are the event's parameters.
@@ -169,4 +169,4 @@ class MoveHandlerHash < HandlerHash
def initialize
super(:PBMoves)
end
end
end

View File

@@ -160,4 +160,4 @@ end
class StringOutput
include FileOutputMixin
end
end

View File

@@ -52,7 +52,7 @@ def pbSetTextMessages
lastitem.gsub!(/([^\.\!\?])\s\s+/) { |m| $1+" " }
items.push(lastitem)
lastitem=""
end
end
neednewline=false
end
if list.code == 101
@@ -84,7 +84,7 @@ def pbSetTextMessages
if lastitem!=""
items.push(lastitem)
lastitem=""
end
end
end
end
end
@@ -128,7 +128,7 @@ def pbSetTextMessages
lastitem.gsub!(/([^\.\!\?])\s\s+/) { |m| $1+" " }
items.push(lastitem)
lastitem=""
end
end
neednewline=false
end
if list.code == 101
@@ -160,7 +160,7 @@ def pbSetTextMessages
if lastitem!=""
items.push(lastitem)
lastitem=""
end
end
end
end
end
@@ -196,7 +196,7 @@ def pbEachIntlSection(file)
if !line[/^\#/] && !line[/^\s*$/]
if line[re]
if havesection
yield lastsection,sectionname
yield lastsection,sectionname
end
lastsection.clear
sectionname=$~[1]
@@ -214,13 +214,13 @@ def pbEachIntlSection(file)
end
}
if havesection
yield lastsection,sectionname
yield lastsection,sectionname
end
end
def pbGetText(infile)
begin
file=File.open(infile,"rb")
file=File.open(infile,"rb")
rescue
raise _INTL("Can't find {1}",infile)
end
@@ -773,4 +773,4 @@ def _MAPISPRINTF(mapid,*arg)
}
end
return string
end
end

View File

@@ -20,7 +20,7 @@ module PBDebug
if $DEBUG && $INTERNAL && @@log.length>0
File.open("Data/debuglog.txt", "a+b") { |f| f.write("#{@@log}") }
end
@@log.clear
@@log.clear
end
def self.log(msg)
@@ -37,4 +37,4 @@ module PBDebug
File.open("Data/dumplog.txt", "a+b") { |f| f.write("#{msg}\r\n") }
end
end
end
end