lib/openxml/docx/properties/underline.rb in openxml-docx-0.10.6 vs lib/openxml/docx/properties/underline.rb in openxml-docx-0.11.0.rc
- old
+ new
@@ -6,10 +6,10 @@
VALID_UNDERLINE_TYPES =
with_namespace :w do
attribute :color, expects: :hex_color
- attribute :theme_color, expects: :valid_theme_color
+ attribute :theme_color, one_of: OpenXml::Docx::THEME_COLORS
attribute :theme_shade, expects: :hex_digit
attribute :theme_tint, expects: :hex_digit
attribute :type, displays_as: :val, one_of: %i(dash dashDotDotHeavy
dashDotHeavy dashedHeavy
dashLong dashLongHeavy