Commit e2d50bab authored by Liang Ding's avatar Liang Ding

Merge remote-tracking branch 'refs/remotes/origin/master' into 1.4.0-dev

parents 8a5ff18a 409c5ad5
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -10,6 +10,12 @@ ...@@ -10,6 +10,12 @@
> 加入[**黑客派**](https://hacpai.com/register),与其他程序员、设计师共同成长! > 加入[**黑客派**](https://hacpai.com/register),与其他程序员、设计师共同成长!
## Authors
[Daniel](https://github.com/88250) and [Vanessa](https://github.com/Vanessa219) are the main authors of Solo, [here](https://github.com/b3log/solo/graphs/contributors) are all contributors.
Solo 的主要作者是 [Daniel](https://github.com/88250)[Vanessa](https://github.com/Vanessa219),所有贡献者可以在[这里](https://github.com/b3log/solo/graphs/contributors)看到。
## Features ## Features
* Tags * Tags
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- <!--
Description: Solo POM. Description: Solo POM.
Version: 3.9.1.18, Feb 20, 2016 Version: 3.9.1.19, May 3, 2016
Author: Liang Ding Author: <a href="http://88250.b3log.org">Liang Ding</a>
Author: <a href="http://www.annpeter.cn">Ann Peter</a>
--> -->
<project xmlns="http://maven.apache.org/POM/4.0.0" <project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
...@@ -110,7 +111,7 @@ ...@@ -110,7 +111,7 @@
<servlet.version>3.1.0</servlet.version> <servlet.version>3.1.0</servlet.version>
<slf4j.version>1.7.5</slf4j.version> <slf4j.version>1.7.5</slf4j.version>
<jsoup.version>1.5.2</jsoup.version> <jsoup.version>1.9.1</jsoup.version>
<markdownpapers-core.version>1.4.2</markdownpapers-core.version> <markdownpapers-core.version>1.4.2</markdownpapers-core.version>
<qiniu.version>7.0.4.1</qiniu.version> <qiniu.version>7.0.4.1</qiniu.version>
<jetty.version>9.2.13.v20150730</jetty.version> <jetty.version>9.2.13.v20150730</jetty.version>
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
package org.b3log.solo.plugin.list; package org.b3log.solo.plugin.list;
import org.apache.commons.lang.StringUtils;
import org.b3log.latke.Latkes; import org.b3log.latke.Latkes;
import org.b3log.latke.event.AbstractEventListener; import org.b3log.latke.event.AbstractEventListener;
import org.b3log.latke.event.Event; import org.b3log.latke.event.Event;
...@@ -27,6 +28,7 @@ import org.json.JSONObject; ...@@ -27,6 +28,7 @@ import org.json.JSONObject;
import org.jsoup.Jsoup; import org.jsoup.Jsoup;
import org.jsoup.nodes.Document; import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element; import org.jsoup.nodes.Element;
import org.jsoup.parser.Parser;
import org.jsoup.select.Elements; import org.jsoup.select.Elements;
...@@ -34,7 +36,8 @@ import org.jsoup.select.Elements; ...@@ -34,7 +36,8 @@ import org.jsoup.select.Elements;
* List (table of contents of an article) handler. * List (table of contents of an article) handler.
* *
* @author <a href="http://88250.b3log.org">Liang Ding</a> * @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.0.0.0, May 30, 2014 * @author <a href="http://www.annpeter.cn">Ann Peter</a>
* @version 1.0.1.0, May 4, 2016
* @since 0.6.7 * @since 0.6.7
*/ */
public class ListHandler extends AbstractEventListener<JSONObject> { public class ListHandler extends AbstractEventListener<JSONObject> {
...@@ -56,7 +59,8 @@ public class ListHandler extends AbstractEventListener<JSONObject> { ...@@ -56,7 +59,8 @@ public class ListHandler extends AbstractEventListener<JSONObject> {
String content = article.optString(Article.ARTICLE_CONTENT); String content = article.optString(Article.ARTICLE_CONTENT);
final Document doc = Jsoup.parse(content); final Document doc = Jsoup.parse(content, StringUtils.EMPTY, Parser.htmlParser());
doc.outputSettings().prettyPrint(false);
final StringBuilder listBuilder = new StringBuilder(); final StringBuilder listBuilder = new StringBuilder();
......
# #
# Copyright (c) 2010-2016, b3log.org & hacpai.com # Copyright (c) 2010-2016, b3log.org & hacpai.com
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License.
# You may obtain a copy of the License at # You may obtain a copy of the License at
# #
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0
# #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
# #
# #
# Description: Solo logging configurations. # Description: Solo logging configurations.
# Version: 1.1.0.4, Nov 5, 2015 # Version: 1.1.0.4, May 6, 2016
# Author: Liang Ding # Author: <a href="http://88250.b3log.org">Liang Ding</a>
# # Author: <a href="http://www.wanglay.com">Lei Wang</a>
#
log4j.rootLogger=INFO, stdout
log4j.rootLogger=INFO,stdout,file
log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=[%-5p]-[%d{yyyy-MM-dd HH:mm:ss}]-[%c:%L]: %m%n log4j.appender.stdout.layout.ConversionPattern=[%-5p]-[%d{yyyy-MM-dd HH:mm:ss}]-[%c:%L]: %m%n
log4j.logger.org.b3log.solo=INFO # Print only messages of level ERROR or above in the package noModule.
log4j.logger.noModule=FATAL
log4j.logger.org.b3log.latke=ERROR
log4j.logger.org.b3log.latke.util.freemarker.Templates=ERROR log4j.logger.org.b3log.solo=INFO
log4j.logger.org.eclipse.jetty=WARN log4j.logger.org.b3log.latke=ERROR
log4j.logger.freemarker=WARN log4j.logger.org.b3log.latke.util.freemarker.Templates=ERROR
log4j.logger.com.mchange=WARN
log4j.logger.org.eclipse.jetty=WARN
log4j.logger.freemarker=WARN
log4j.logger.com.mchange=WARN
# File Logger Conf
log4j.appender.file=org.apache.log4j.RollingFileAppender
log4j.appender.file.File=./solo.log
log4j.appender.file.MaxFileSize=10MB
log4j.appender.file.MaxBackupIndex=5
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=[%-5p]-[%d{yyyy-MM-dd HH:mm:ss}]-[%c:%L]: %m%n
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment