# File Text/Format.rb, line 72 def <=>(o) t = @text <=> o.text return t unless t == 0 t = @columns <=> o.columns return t unless t == 0 t = @left_margin <=> o.left_margin return t unless t == 0 t = @right_margin <=> o.right_margin return t unless t == 0 t = @first_indent <=> o.first_indent return t unless t == 0 t = @body_indent <=> o.body_indent return t unless t == 0 t = @tag_text <=> o.tag_text return t unless t == 0 t = @tabstop <=> o.tabstop return t unless t == 0 t = @format_style <=> o.format_style return t unless t == 0 if @extra_space != o.extra_space return (@extra_space ? 1 : -1) end if @tag_paragraph != o.tag_paragraph return (@tag_paragraph ? 1 : -1) end if @nobreak != o.nobreak return (@nobreak ? 1 : -1) end if @abbreviations.empty? || o.abbreviations.empty? if @abbreviations.empty? && !o.abbreviations.empty? t = -1 elsif !@abbreviations.empty? && o.abbreviations.empty? t = 1 else t = 0 end end return t unless t == 0 if @nobreak_regex.empty? || o.nobreak_regex.empty? if @nobreak_regex.empty? && !o.nobreak_regex.empty? t = -1 elsif !@nobreak_regex.empty? && o.nobreak_regex.empty? t = 1 else t = 0 end end t end