#include "lookup.hh"
#include "debug.hh"
-IMPLEMENT_IS_TYPE_B1 (Bar,Item);
Bar::Bar ()
{
breakable_b_ = true;
type_str_ = "|";
+ at_line_start_b_ = false;
}
void
}
Molecule*
-Bar::brew_molecule_p () const
+Bar::do_brew_molecule_p () const
{
Paper_def *p = paper ();
- Atom s = lookup_l ()->bar (type_str_, p->get_var ("barsize"));
+ Molecule *output = new Molecule (lookup_l ()->bar (type_str_, p->get_var ("barsize")));
- Molecule*output = new Molecule (Atom (s));
return output;
}
{":|", ":|", ""},
{"||", "||", ""},
{".|.", ".|.", ""},
+ {"", "scorebar", "|"},
+ {"", "{", "{"},
+ {"", "[", "["},
{0,0,0}
};
for (int i=0; bar_breaks[i][0]; i++)
{
if (bar_breaks[i][1] == type_str_)
- type_str_ = bar_breaks[i][break_status_dir ()+1];
+ {
+ type_str_ = bar_breaks[i][break_status_dir ()+1];
+ if (at_line_start_b_ && (break_status_dir_ == 1) && (type_str_ == ""))
+ {
+ type_str_ = "|";
+ }
+ }
}
/*