#line 4158 "/home/travis/build/felix-lang/felix/src/packages/flx_web.fdoc"
  include "./paragraph-interface";
  
  fun setup(config_data:string) = {
    eprintln$ "Setup fdoc_paragraph" + config_data;
    return 0;
  }
  
  
  object fdoc_paragraph (write_string: string -> 0) implements paragraph-control_t =
  {
    method fun whatami () => "Paragraph object";
    var pstate = false;
    proc start_p () { write_string("<p>"); pstate=true; }
    proc start_p (cls:string) { write_string("<p class='"+cls+"'>"); pstate=true; }
    proc end_p () { write_string("</p>"); pstate=false; }
    proc break_p () { write_string("</p><p>"); }
    method proc sp-clas (cls: string) { if not pstate do start_p cls; done }
    method proc sp() { if not pstate do start_p; done }
    method proc ep() { if pstate do end_p; done }
    method proc bp() { if pstate do end_p; done start_p; }
  }
  
  export fun setup of (string) as "fdoc_paragraph_setup";
  export fun fdoc_paragraph of (string->0) as "fdoc_paragraph";