lib/podoff.rb in podoff-1.2.3 vs lib/podoff.rb in podoff-1.2.4

- old
+ new

@@ -4,11 +4,11 @@ require 'stringio' module Podoff - VERSION = '1.2.3' + VERSION = '1.2.4' def self.load(path, encoding) Podoff::Document.load(path, encoding) end @@ -517,9 +517,11 @@ end alias :color :rg alias :rgb :rg def bt(x, y, text) + + return unless text @content.write "\n" if @content.size > 0 @content.write "BT " @content.write @font if @font @content.write @color if @color