[Bf-extensions-cvs] [dd12462] master: Wrap lone lines

Campbell Barton noreply at git.blender.org
Sat Jan 31 19:11:47 CET 2015


Commit: dd12462ba1ddefd1de3476d6f96d77c8c9b41147
Author: Campbell Barton
Date:   Sun Feb 1 05:10:43 2015 +1100
Branches: master
https://developer.blender.org/rBACdd12462ba1ddefd1de3476d6f96d77c8c9b41147

Wrap lone lines

===================================================================

M	ui_splash_tips/__init__.py
M	ui_splash_tips/tips.txt

===================================================================

diff --git a/ui_splash_tips/__init__.py b/ui_splash_tips/__init__.py
index 26eb22f..c7549c9 100644
--- a/ui_splash_tips/__init__.py
+++ b/ui_splash_tips/__init__.py
@@ -74,10 +74,14 @@ def menu_func(self, context):
 
     layout = self.layout
     tip, url = find_random_tip()
-    col = layout.row()
-    col.label(tip)
+    tip = tip.split("\\n")
+    row = layout.row()
+    row.label(tip[0])
     if url:
-        col.operator("wm.url_open", text="", icon='INFO').url = url_prefix + url
+        row.operator("wm.url_open", text="", icon='INFO').url = url_prefix + url
+    for tip_line in tip[1:]:
+        row = layout.row()
+        row.label(tip_line.strip())
     layout.separator()
 
 
diff --git a/ui_splash_tips/tips.txt b/ui_splash_tips/tips.txt
index d585d63..7a61653 100644
--- a/ui_splash_tips/tips.txt
+++ b/ui_splash_tips/tips.txt
@@ -4,7 +4,7 @@ Press Ctrl-C when hovering the cursor over an input field to copy it and Ctrl-V
 Press F5 over a sidebar or a header to flip it to the other side of the window.
 Pressing G twice in Mesh Edit Mode activates the Slide command.
 Ctrl-LMB on a panel’s header will open it, while closing all the other panels.
-Pin panels by clicking on their headers with RMB and choosing Pin, to keep them visible in all tabs.
+Pin panels by clicking on their headers with RMB and choosing Pin,\n to keep them visible in all tabs.
 Press E with the mouse cursor over an Object Selection Field to activate an Object Picker.
 Only allow an object to transform in a certain direction by using Transform Locks.
 You can make objects appear and disappear by animating their Layer Relation.
@@ -15,10 +15,10 @@ See vertices behind other faces by turning off Limit Selection to Visible.
 If you see weird shading on your mesh, try Recalculate Normals and Remove Doubles.
 You can add new geometry with Ctrl-LMB in Edit Mode.
 Press Ctrl-Up Arrow to maximize a window. Repeat to minimize.
-Click the little arrows in the outliner to prevent view-port selection, Ctrl-LMB click them to do it to all their children too.
-When adding plane, cube, or cylinder in edit mode, auto align to active edge, and set radius to active edge length
+Click the little arrows in the outliner to prevent view-port selection,\n Ctrl-LMB click them to do it to all their children too.
+When adding plane, cube, or cylinder in edit mode, auto align to active edge,\n and set radius to active edge length.
 Shift+Click any folder icon to open that folder within your Operating System
-Shift+Click-And-Drag a window’s corner drag area to separate that window into it’s own Blender instance - Great for multiple monitors!
+Shift+Click-And-Drag a window’s corner drag area to separate that window\n into it’s own Blender instance - Great for multiple monitors!
 Ctrl+Click-And-Drag a window’s corner drag area into another window to swap them.
 Spacebar opens the tool search popup.
 Ctrl-C over tools & menu-items to copy the Python command.



More information about the Bf-extensions-cvs mailing list