Mail Archives: geda-user/2020/10/23/20:15:33
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
--8323329-459796504-1603497324=:5003
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8BIT
On Fri, 23 Oct 2020, Glenn (glimrick AT epilitimus DOT com) [via
geda-user AT delorie DOT com] wrote:
> Okay so the newline was there because of the debug message you removed.
> It pushed the "Checking for title box" message to the next line.
Oh, I see. So debug-spew requires a newline at the end of the string if a
newline is supposed to be printed; it's just missing from two messages in
this function. This hasn't been noticed so far because the next message
starts with a newline.
This is actually one of the cases where it makes sense to submit a second
patch fixing the newlines. It's normally preferred to not change small
things like whitespace unless necessary; however, in this case, it's
clearly an oversight (see commit 86f100d).
> I think the comment you are referring to was actually my rewrite of the
> comment to include the fact that a specific title was permitted. So
> here I would argue that the change was relevant, but actually to the
> previous patch that added the spice-title rather than this one.
Extending the top comment is totally fine (and good practice).
I was referring to the removal of the comment ";; If the schematic
contains a spice-title device" a few lines below. Sure, it's a kind of
obvious thing to state, and maybe it was bad practice to place the comment
in the first place; but once it's there, it should only be removed if
there's reason to do so--like the piece of code changed, the comment isn't
accurate any more, or you are the original author of the comment and feel
like it. (Don't spend too much thought about this, though.)
Roland
--8323329-459796504-1603497324=:5003--
- Raw text -