metanorma / pubid-iso

Implementation of ISO pubid
BSD 2-Clause "Simplified" License
1 stars 0 forks source link

Broken rendering for typed stage in Amendments that are Published or in PRF #193

Closed opoudjis closed 1 year ago

opoudjis commented 1 year ago
base = Pubid::Iso::Identifier.parse("ISO 17301-1:2016")
base.edition = 1
id = Pubid::Iso::Identifier.create(:number=>"1", :type=>:amd, :publisher=>"ISO", :year=>"2017", :iteration=>"3", :stage=>"60.60", :base=>base)

id.to_s = "ISO 17301-1:2016/#<Pubid::Core::Stage:0x0000000106f67e10>Amd 1.3:2017"

Same behaviour if stage is "50.00".

ronaldtse commented 1 year ago

This is confirmed as a bug. @mico please help fix this.