You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The name of a question author or ancestor is displayed as Last,First without any space after the comma, as is the list of question ancestors. This appears in the question editor and question preview. I could not find any discussion about this, so here it is. I think it would be best to follow convention and put a space afterward.
The author name is stored that way in moddataset, line 554. Those other places are just displaying the stored value.
I agree it would be better with a space, but it would cause some challenges with matching previous author names to prevent duplicates when edits are made. But I might be able to work around that.
The name of a question author or ancestor is displayed as
Last,First
without any space after the comma, as is the list of question ancestors. This appears in the question editor and question preview. I could not find any discussion about this, so here it is. I think it would be best to follow convention and put a space afterward.Example:
Places in the code I found this happen:
IMathAS/course/moddataset.php
Line 1034 in 8eb72ac
IMathAS/course/testquestion.php
Line 321 in ef54add
IMathAS/course/testquestion2.php
Line 431 in 37c7973
Calls that produce a list without spaces after the commas:
Sanitize::encodeStringForDisplay($line['author']))
Sanitize::encodeStringForDisplay($line['ancestors'])
Sanitize::encodeStringForDisplay($line['ancestorauthors'])
The text was updated successfully, but these errors were encountered: