Skip to content

Rendering hangs on some malformed govspeak #296

@nacnudus

Description

@nacnudus

Rendering the following malformed govspeak string hangs for ages before failing altogether. It would be more helpful to quickly return an error.

govspeak = <<-END_GOVSPEAK               
$LegislativeList                         
* Item                                   
  $EndLegislativeList                    
END_GOVSPEAK                             
Govspeak::Document.new(govspeak).to_html 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions