New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug #1222698 fix and other note styling fixes #23
Conversation
I have added some markup and styling for census-assistant generated tables. I've used CSS instead of nl2br to preserve line-breaks. I've fixed some issues where the first line wasn't always being turned into a link. Does this fix all the issues? |
Greg, Thanks, very clever, for my part I'd add text-align:left to the Regards ------ Original Message ------
|
Just noticed a typo, in functions_print.php line 410 you refer to $nid - I think you mean $note as $nid is undefined |
Also line 456, I think should start $first_line = ... (not $text =) |
FYI, the first of this is in some unreachable code, so I've removed it. Thanks. |
Greg, I sent you an email with a few questions about this. I've adopted the simple approach here.
Shifted note styles from GEDFact_assistant/css/cens_style.css to the themes as they are required in a number of places. Also recoded function print_note_record() to remove need for a < br > in the note text to act as a marker for when the header line is to be turned into a link (allows consistency of display), fixed potential logic error that permitted a call to getNote() with a null record, and replaced "\n" chars with "< br >" for notes that were created outside the census assistant - this identified that the regex in function formatCensusNote() was leaving leading/trailing "\n" chars for preamble, postamble & data sections. Fixed by the simple expedient of trimming them!