Wordpress new line to paragraph conversion

Created on 30 November 2017, almost 7 years ago
Updated 15 March 2024, 7 months ago

New lines in Wordpress body texts should be converted to paragraphs

πŸ› Bug report
Status

RTBC

Version

3.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands e.ruiter

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 9.5.x + Environment: PHP 8.1 & MariaDB 10.3.22
    last update 9 months ago
    Patch Failed to Apply
  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 9.5.x + Environment: PHP 8.1 & MariaDB 10.3.22
    last update 9 months ago
    Patch Failed to Apply
  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 9.5.x + Environment: PHP 8.1 & MariaDB 10.3.22
    last update 9 months ago
    Patch Failed to Apply
  • πŸ‡¬πŸ‡·Greece bserem

    Patch #5 does work. #8 does not. Given how much of a difference this makes to imported content readability, I'll push this forward.

  • πŸ‡ΊπŸ‡ΈUnited States HongPong Philadelphia
    
    +    if (\Drupal::moduleHandler()->moduleExists('filter') && $this->configuration['filter_autop']) {
    +      $text = _filter_autop($text);
    +    }
    

    The snag here is it would silently fail if filter module is not enabled. imo better if it would at least kick a notification. Or a better notice on the option like "Filter module must be enabled, or this step will be skipped silently." Some tweak of that nature. That's the only issue which jumps at me right now. Thanks so much for hashing this out to work cleanly!

    +      '#description' => 'Converts line breaks into <p> and <br> in an intelligent fashion.',
    
Production build 0.71.5 2024