Closed ronaldtse closed 6 months ago
In audio.rb and video.rb, there is this line:
attrs = @attributes.empty? ? "\[\]" : @attributes.to_adoc
Since we have AttributeList, you can implement AttributeList.to_adoc which returns [] when empty. So this line can go away, and the next line uses attrs.to_adoc instead of attrs.
AttributeList
AttributeList.to_adoc
[]
attrs.to_adoc
attrs
_Originally posted by @ronaldtse in https://github.com/metanorma/coradoc/pull/47#discussion_r1580073783_
In audio.rb and video.rb, there is this line:
Since we have
AttributeList
, you can implementAttributeList.to_adoc
which returns[]
when empty. So this line can go away, and the next line usesattrs.to_adoc
instead ofattrs
._Originally posted by @ronaldtse in https://github.com/metanorma/coradoc/pull/47#discussion_r1580073783_