From ee64e4579fe9b83fdd524e45d6842664f61b6550 Mon Sep 17 00:00:00 2001 From: Owen Williams Date: Fri, 12 Mar 2010 21:40:30 -0500 Subject: [PATCH] * fix indentation problems with bullet lists --- Tomboy/Addins/PrintNotes/PrintNotes.addin.xml | 2 +- Tomboy/Addins/PrintNotes/PrintNotesNoteAddin.cs | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Tomboy/Addins/PrintNotes/PrintNotes.addin.xml b/Tomboy/Addins/PrintNotes/PrintNotes.addin.xml index a699592..a2593fe 100644 --- a/Tomboy/Addins/PrintNotes/PrintNotes.addin.xml +++ b/Tomboy/Addins/PrintNotes/PrintNotes.addin.xml @@ -5,7 +5,7 @@ description="Allows you to print a note." category="Desktop Integration" defaultEnabled="true" - version="0.2"> + version="0.21"> diff --git a/Tomboy/Addins/PrintNotes/PrintNotesNoteAddin.cs b/Tomboy/Addins/PrintNotes/PrintNotesNoteAddin.cs index 160288a..2f4513a 100644 --- a/Tomboy/Addins/PrintNotes/PrintNotesNoteAddin.cs +++ b/Tomboy/Addins/PrintNotes/PrintNotesNoteAddin.cs @@ -200,6 +200,10 @@ namespace Tomboy.PrintNotes layout.Attributes = attr_list; } + DepthNoteTag depth = Buffer.FindDepthTag (p_start); + if (depth != null) + indentation += (int)(dpiX * 0.333) * depth.Depth; + layout.Width = Pango.Units.FromPixels ((int)context.Width - margin_left - margin_right - indentation); layout.Wrap = Pango.WrapMode.WordChar; @@ -431,4 +435,4 @@ namespace Tomboy.PrintNotes } } } -} \ No newline at end of file +} -- 1.6.3.3