[savannah-help-public] [sr #109696] markdown verbatim (for code snippets) does not respect white-space

2019-06-07 Thread Ineiev
Update of sr #109696 (project administration):

  Status:None => In Progress
 Assigned to:None => ineiev 

___

Follow-up Comment #1:

First, we want to wrap those verbatim elements at reasonable width --- if they
aren't, long lines break rendering of whole item.

Then, it's desirable to make this work with CSS-unaware browsers as well. I'd
rather reformat spaces using   like this:

function markup_verbatim_spaces ($ns)
{
  if ($ns < 1)
return "";
  if ($ns < 2)
return " ";
  $ret = " ";
  $ns--;
  while ($ns)
{
  $ns--;
  $ret .= ' ';
}
  return $ret . "";
}
...
  $verbatim_buffer = str_replace ("\r\n", "\n", $verbatim_buffer);
  $verbatim_buffer = str_replace ("\n\r", "\n", $verbatim_buffer);
  $verbatim_buffer = str_replace ("\r", "\n", $verbatim_buffer);
  # Hopefully preserve spaces in HTML allowing line breaking.
  $verb_out = "";
  $ns = 0;
  for ($i = 0; $i < strlen ($verbatim_buffer); $i++)
{
  $next_char = substr ($verbatim_buffer, $i, 1);
  if ($next_char === ' ')
{
  $ns++;
  continue;
}
  if ($ns)
{
  $verb_out .= markup_verbatim_spaces ($ns);
  $ns = 0;
}
  $verb_out .= $next_char;
}
  $verbatim_buffer = $verb_out . markup_verbatim_spaces ($ns);

  $verbatim_buffer = str_replace ("\t",
"   \t",
  $verbatim_buffer);
  $verbatim_buffer = str_replace ("\n", "\n", $verbatim_buffer);

___

Reply to this item at:

  

___
  Message sent via Savannah
  https://savannah.nongnu.org/




[savannah-help-public] [sr #109698] wrong reverse dependency list

2019-06-07 Thread Ineiev
URL:
  

 Summary: wrong reverse dependency list
 Project: Savannah Administration
Submitted by: ineiev
Submitted on: Fri 07 Jun 2019 08:32:52 PM UTC
Category: Savannah trackers - bugs, tasks, etc.
Priority: 5 - Normal
Severity: 3 - Normal
  Status: Confirmed
 Assigned to: ineiev
Originator Email: 
Operating System: None
 Open/Closed: Open
 Discussion Lock: Any

___

Details:

In task #15300, history shows that task #6111 was made dependent on it; in
fact, it only depends on bug #15300. something went wrong.




___

Reply to this item at:

  

___
  Message sent via Savannah
  https://savannah.nongnu.org/