|
@@ -1050,12 +1050,12 @@ public class ExtractConfigServiceImpl implements ExtractConfigService {
|
|
public String startWithP(String s,Integer number,boolean option){
|
|
public String startWithP(String s,Integer number,boolean option){
|
|
if(number == -2){
|
|
if(number == -2){
|
|
if(s.startsWith("<p>")){
|
|
if(s.startsWith("<p>")){
|
|
- s = s.replaceAll("<p>","<p style=\"margin-left:40px;\">").replaceFirst("<p style=\"margin-left:40px;\">", "<p style=\"margin-left:20px;\">");
|
|
|
|
|
|
+ s = s.replaceAll("<p>","<p style=\"margin-left:40px;\">").replaceAll("<p style=\"margin-left:40px;\">", "<p style=\"margin-left:20px;\">");
|
|
}else{
|
|
}else{
|
|
s = "<p style=\"margin-left:20px;color:red;\">" + s + "</p>";
|
|
s = "<p style=\"margin-left:20px;color:red;\">" + s + "</p>";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if(number == -1){
|
|
|
|
|
|
+ else if(number == -1){
|
|
if(s.startsWith("<p>")){
|
|
if(s.startsWith("<p>")){
|
|
s = s.replaceAll("<p>","<p style=\"margin-left:40px;\">").replaceFirst("<p style=\"margin-left:40px;\">", "<p style=\"margin-left:20px;\">" + "答案:");
|
|
s = s.replaceAll("<p>","<p style=\"margin-left:40px;\">").replaceFirst("<p style=\"margin-left:40px;\">", "<p style=\"margin-left:20px;\">" + "答案:");
|
|
}else{
|
|
}else{
|