Skip to content
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

Closed
wants to merge 1 commit into from
Closed

Bug #1222698 fix and other note styling fixes #23

wants to merge 1 commit into from

Conversation

ddrury
Copy link
Contributor

@ddrury ddrury commented Nov 1, 2013

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!

@fisharebest
Copy link
Owner

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?

@ddrury
Copy link
Contributor Author

ddrury commented Nov 3, 2013

Greg,

Thanks, very clever, for my part I'd add text-align:left to the
table.table-census-assistant th style, but that's probably a personal
preference.

Regards
David
Please consider the environment before printing this e-mail

------ Original Message ------
From: "Greg Roach" notifications@github.com
To: "fisharebest/webtrees" webtrees@noreply.github.com
Cc: "David Drury" david@drury.me.uk
Sent: 03/11/2013 09:20:27
Subject: Re: [webtrees] Bug #1222698 fix and other note styling fixes
(#23)

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?


Reply to this email directly or view it on GitHub.

@ddrury
Copy link
Contributor Author

ddrury commented Nov 3, 2013

Just noticed a typo, in functions_print.php line 410 you refer to $nid - I think you mean $note as $nid is undefined

@ddrury
Copy link
Contributor Author

ddrury commented Nov 3, 2013

Also line 456, I think should start $first_line = ... (not $text =)

@fisharebest
Copy link
Owner

FYI, the first of this is in some unreachable code, so I've removed it.

Thanks.

@fisharebest fisharebest closed this Nov 3, 2013
bxbroze pushed a commit to bxbroze/webtrees that referenced this pull request Jan 16, 2016
@kexuebin kexuebin mentioned this pull request May 20, 2019
@ricklach ricklach mentioned this pull request Jul 11, 2019
@makitso makitso mentioned this pull request Aug 11, 2019
This was referenced Aug 25, 2019
@HRN65 HRN65 mentioned this pull request Apr 13, 2020
@ghost ghost mentioned this pull request Aug 9, 2020
@webtrees-pesz webtrees-pesz mentioned this pull request Aug 18, 2023
@makitso makitso mentioned this pull request Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants