You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ms...@apache.org on 2020/01/11 16:17:37 UTC

[openoffice] branch trunk updated: Fixed typos

This is an automated email from the ASF dual-hosted git repository.

mseidel pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/openoffice.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 7c5cbfd  Fixed typos
7c5cbfd is described below

commit 7c5cbfde20e595d678c73935a8f75203773bea47
Author: mseidel <ms...@apache.org>
AuthorDate: Sat Jan 11 17:17:07 2020 +0100

    Fixed typos
---
 main/pyuno/demo/swriter.py                           | 20 ++++++++++----------
 .../examples/python/pythonSamples/TableSample.py     | 16 ++++++++--------
 2 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/main/pyuno/demo/swriter.py b/main/pyuno/demo/swriter.py
index f0779d2..a4f5520 100644
--- a/main/pyuno/demo/swriter.py
+++ b/main/pyuno/demo/swriter.py
@@ -1,5 +1,5 @@
 # *************************************************************
-#  
+#
 #  Licensed to the Apache Software Foundation (ASF) under one
 #  or more contributor license agreements.  See the NOTICE file
 #  distributed with this work for additional information
@@ -7,20 +7,20 @@
 #  to you under the Apache License, Version 2.0 (the
 #  "License"); you may not use this file except in compliance
 #  with the License.  You may obtain a copy of the License at
-#  
+#
 #    http://www.apache.org/licenses/LICENSE-2.0
-#  
+#
 #  Unless required by applicable law or agreed to in writing,
 #  software distributed under the License is distributed on an
 #  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 #  KIND, either express or implied.  See the License for the
 #  specific language governing permissions and limitations
 #  under the License.
-#  
+#
 # *************************************************************
 
 
-# bootstrap uno component context 	
+# bootstrap uno component context
 import uno
 import unohelper
 
@@ -38,7 +38,7 @@ def insertTextIntoCell( table, cellName, text, color ):
     tableText.setString( text )
 
 localContext = uno.getComponentContext()
-				   
+
 resolver = localContext.ServiceManager.createInstanceWithContext(
 				"com.sun.star.bridge.UnoUrlResolver", localContext )
 
@@ -56,7 +56,7 @@ doc = desktop.loadComponentFromURL( "private:factory/swriter","_blank", 0, () )
 text = doc.Text
 cursor = text.createTextCursor()
 text.insertString( cursor, "The first line in the newly created text document.\n", 0 )
-text.insertString( cursor, "Now we are in the second line\n" , 0 )
+text.insertString( cursor, "Now we are in the second line.\n" , 0 )
 
 # create a text table
 table = doc.createInstance( "com.sun.star.text.TextTable" )
@@ -103,7 +103,7 @@ cursor.setPropertyValue( "CharColor", 255 )
 cursor.setPropertyValue( "CharShadowed", uno.Bool(1) )
 
 text.insertControlCharacter( cursor, PARAGRAPH_BREAK, 0 )
-text.insertString( cursor, " This is a colored Text - blue with shadow\n" , 0 )
+text.insertString( cursor, " This is a colored text - blue with shadow\n" , 0 )
 text.insertControlCharacter( cursor, PARAGRAPH_BREAK, 0 )
 
 textFrame = doc.createInstance( "com.sun.star.text.TextFrame" )
@@ -116,11 +116,11 @@ text.insertTextContent( cursor, textFrame, 0 )
 textInTextFrame = textFrame.getText()
 cursorInTextFrame = textInTextFrame.createTextCursor()
 textInTextFrame.insertString( cursorInTextFrame, "The first line in the newly created text frame.", 0 )
-textInTextFrame.insertString( cursorInTextFrame, "\nWith this second line the height of the rame raises.",0)
+textInTextFrame.insertString( cursorInTextFrame, "\nWith this second line the height of the frame raises.",0)
 text.insertControlCharacter( cursor, PARAGRAPH_BREAK, 0 )
 
 cursor.setPropertyValue( "CharColor", 65536 )
 cursor.setPropertyValue( "CharShadowed", uno.Bool(0) )
 
-text.insertString( cursor, " That's all for now !!" , 0 )
+text.insertString( cursor, " That's all for now!" , 0 )
 
diff --git a/main/scripting/examples/python/pythonSamples/TableSample.py b/main/scripting/examples/python/pythonSamples/TableSample.py
index a2acb14..2d4f573 100644
--- a/main/scripting/examples/python/pythonSamples/TableSample.py
+++ b/main/scripting/examples/python/pythonSamples/TableSample.py
@@ -1,5 +1,5 @@
 # *************************************************************
-#  
+#
 #  Licensed to the Apache Software Foundation (ASF) under one
 #  or more contributor license agreements.  See the NOTICE file
 #  distributed with this work for additional information
@@ -7,16 +7,16 @@
 #  to you under the Apache License, Version 2.0 (the
 #  "License"); you may not use this file except in compliance
 #  with the License.  You may obtain a copy of the License at
-#  
+#
 #    http://www.apache.org/licenses/LICENSE-2.0
-#  
+#
 #  Unless required by applicable law or agreed to in writing,
 #  software distributed under the License is distributed on an
 #  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 #  KIND, either express or implied.  See the License for the
 #  specific language governing permissions and limitations
 #  under the License.
-#  
+#
 # *************************************************************
 
 import uno
@@ -47,7 +47,7 @@ def createTable():
     text = doc.Text
     cursor = text.createTextCursor()
     text.insertString( cursor, "The first line in the newly created text document.\n", 0 )
-    text.insertString( cursor, "Now we are in the second line\n" , 0 )
+    text.insertString( cursor, "Now we are in the second line.\n" , 0 )
 
     # create a text table
     table = doc.createInstance( "com.sun.star.text.TextTable" )
@@ -94,7 +94,7 @@ def createTable():
     cursor.setPropertyValue( "CharShadowed", uno.Bool(1) )
 
     text.insertControlCharacter( cursor, PARAGRAPH_BREAK, 0 )
-    text.insertString( cursor, " This is a colored Text - blue with shadow\n" , 0 )
+    text.insertString( cursor, " This is a colored text - blue with shadow\n" , 0 )
     text.insertControlCharacter( cursor, PARAGRAPH_BREAK, 0 )
 
     textFrame = doc.createInstance( "com.sun.star.text.TextFrame" )
@@ -106,12 +106,12 @@ def createTable():
     textInTextFrame = textFrame.getText()
     cursorInTextFrame = textInTextFrame.createTextCursor()
     textInTextFrame.insertString( cursorInTextFrame, "The first line in the newly created text frame.", 0 )
-    textInTextFrame.insertString( cursorInTextFrame, "\nWith this second line the height of the rame raises.",0)
+    textInTextFrame.insertString( cursorInTextFrame, "\nWith this second line the height of the frame raises.",0)
     text.insertControlCharacter( cursor, PARAGRAPH_BREAK, 0 )
 
     cursor.setPropertyValue( "CharColor", 65536 )
     cursor.setPropertyValue( "CharShadowed", uno.Bool(0) )
 
-    text.insertString( cursor, " That's all for now !!" , 0 )
+    text.insertString( cursor, " That's all for now!" , 0 )
 
 g_exportedScripts = createTable,