sub dirdesc in Local.pm is used to synthesize a description of a directory to display it in the listing. If it does not find a README.* file, it returns no value (i.e. = undefined). Content of the description table cell is then empty and browsers may delete the cell. Since the cell is not rendered, CSS decoration is not applied.
To keep the cell (i.e. to be able to render at least a border and a background), sub dirdesc should return a "neutral" value in the no README case like a non-braking space (HTML  ).
Log in to post a comment.