Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/openxml/docx/elements/paragraph.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ class Paragraph < OpenXml::Docx::Element
value_property :page_break_before
value_property :snap_to_grid
value_property :paragraph_style
value_property :supress_auto_hyphens
value_property :supress_line_numbers
value_property :supress_overlap
value_property :suppress_auto_hyphens
value_property :suppress_line_numbers
value_property :suppress_overlap
value_property :textbox_tight_wrap
value_property :text_alignment
value_property :text_direction
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module OpenXml
module Docx
module Properties
class SupressAutoHyphens < ToggleProperty
class SuppressAutoHyphens < ToggleProperty
end
end
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module OpenXml
module Docx
module Properties
class SupressLineNumbers < ToggleProperty
class SuppressLineNumbers < ToggleProperty
end
end
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module OpenXml
module Docx
module Properties
class SupressOverlap < ToggleProperty
class SuppressOverlap < ToggleProperty
end
end
end
Expand Down
22 changes: 22 additions & 0 deletions spec/properties/suppress_auto_hyphens_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
require "spec_helper"

describe OpenXml::Docx::Properties::SuppressAutoHyphens do
include ValuePropertyTestMacros

it_should_use tag: :suppressAutoHyphens, name: "suppress_auto_hyphens", value: true

with_value(true) do
it_should_work
it_should_output "<w:suppressAutoHyphens/>"
end

with_value(false) do
it_should_work
it_should_output "<w:suppressAutoHyphens w:val=\"false\"/>"
end

with_value(nil) do
it_should_not_work
end

end
22 changes: 22 additions & 0 deletions spec/properties/suppress_line_numbers_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
require "spec_helper"

describe OpenXml::Docx::Properties::SuppressLineNumbers do
include ValuePropertyTestMacros

it_should_use tag: :suppressLineNumbers, name: "suppress_line_numbers", value: true

with_value(true) do
it_should_work
it_should_output "<w:suppressLineNumbers/>"
end

with_value(false) do
it_should_work
it_should_output "<w:suppressLineNumbers w:val=\"false\"/>"
end

with_value(nil) do
it_should_not_work
end

end
22 changes: 22 additions & 0 deletions spec/properties/suppress_overlap_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
require "spec_helper"

describe OpenXml::Docx::Properties::SuppressOverlap do
include ValuePropertyTestMacros

it_should_use tag: :suppressOverlap, name: "suppress_overlap", value: true

with_value(true) do
it_should_work
it_should_output "<w:suppressOverlap/>"
end

with_value(false) do
it_should_work
it_should_output "<w:suppressOverlap w:val=\"false\"/>"
end

with_value(nil) do
it_should_not_work
end

end
22 changes: 0 additions & 22 deletions spec/properties/supress_auto_hyphens_spec.rb

This file was deleted.

22 changes: 0 additions & 22 deletions spec/properties/supress_line_numbers_spec.rb

This file was deleted.

22 changes: 0 additions & 22 deletions spec/properties/supress_overlap_spec.rb

This file was deleted.