Commit ed27d338 authored by Luis Ricardo's avatar Luis Ricardo Committed by Damien McKenna
Browse files

Issue #3218647 by luisrhaas, DamienMcKenna, Anybody: Remove line breaks from meta tag output.

parent 56067dfb
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -56,6 +56,8 @@ Metatag 8.x-1.x-dev, xxxx-xx-xx
  product:condition.
#3209938 by Sutharsan, murilohp, DamienMcKenna: Edit form title does not contain
  path.
#3218647 by luisrhaas, DamienMcKenna, Anybody: Remove line breaks from meta tag
  output.


Metatag 8.x-1.16, 2021-03-15
+4 −0
Original line number Diff line number Diff line
@@ -324,6 +324,10 @@ abstract class MetaNameBase extends PluginBase {
  /**
   * Make the string presentable.
   *
   * This removes whitespace from either side of the string, and removes extra
   * whitespace inside the string so that it only contains one single space,
   * all line breaks and tabs are replaced by spaces.
   *
   * @param string $value
   *   The raw string to process.
   *
+1 −0
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@ use Drupal\Tests\UnitTestCase;
 * @group metatag
 */
class MetaNameBaseTest extends UnitTestCase {

  /**
   * The MetaNameBase Mocked Object.
   *