Skip to content

Commit

Permalink
really fixing the problem this time
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Luck committed Jan 7, 2017
1 parent 7daa6fe commit e040e24
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
###Changelog


####1.1.2

* Really, REALLY fixed the problem this time.

####1.1.1

* Really fixed the problem this time.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Tags: kindle, ebook, periodical, publisher, magazine, electronic, amazon
Requires at least: 3.2.0
Tested up to: 4.1.0
Stable Tag: 1.1.1
Stable Tag: 1.1.2
License : GPLv2 or later
License URI : http://www.gnu.org/licenses/gpl-2.0.html

Expand Down
4 changes: 3 additions & 1 deletion includes/KindleFeed.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,9 @@ public function strip_content($data_str) {
// Thoughts from: http://syrkos.com/blog/2013/04/25/make-html-xhtml-compliant-without-tidy/
// Helper: http://regexr.com/
public function fix_bad_xml($xml) {
$xml = preg_replace("/<img([^>\/]+)\>/i", "<img $1/>", $xml);
// TODO: Need to get this to ignore tags that have the end and add to those that don't
// @link: http://stackoverflow.com/questions/8906503/preg-replace-to-put-forward-slash-in-img-tag
$xml = preg_replace("/<img([^>]+)(?<!\/)\>/is", "<img $1 />", $xml);
$xml = preg_replace("/<hr([^>\/]*)\>/i", "<hr $1/>", $xml);
$replace = ['&nbsp;' => ''];
$xml = strtr($xml, $replace);
Expand Down
2 changes: 1 addition & 1 deletion kindle-feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Kindle Periodical Manager
Plugin URI: http://www.loudlever.com/wordpress-plugins/kindle-periodical-manager/
Description: Organize and format your 'Posts' as required by Amazon for <a href='https://kindlepublishing.amazon.com/gp/vendor/kindlepubs/kpp/kpp-home' target='_blank'>Kindle for Periodicals</a>.
Version: 1.1.1
Version: 1.1.2
Author: Loudlever
Author URI: http://www.loudlever.com
Expand Down
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
Tags: kindle, ebook, periodical, publisher, magazine, electronic, amazon
Requires at least: 3.2.0
Tested up to: 4.1.0
Stable Tag: 1.1.0
Stable Tag: 1.1.2
License : GPLv2 or later
License URI : http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -38,6 +38,10 @@ If you have any questions not addressed here, [please email us](mailto:wordpress

== Changelog ==

= 1.1.2 =

* Really, REALLY fixed the problem this time.

= 1.1.1 =

* Really fixed the problem this time.
Expand Down

0 comments on commit e040e24

Please sign in to comment.