title: Convert a list to a string without a break line
body: <p>I converted a list to a string, but how can I get rid of the line break between the list items?</p>
  <p>It should only delete the line break between the two classmaps, not the whole formatting.</p>
  <pre><code>    def config_classmap(self, classmapdict):
          self.classmaplist = []
          if self.voice &gt; 0:
              voiceclass = f'''
  class cos-map-dscp-vo-2
    police {self.voice * 1000} conform-action transmit exceed-action drop
    priority
  '''
              self.classmaplist.append(voiceclass)
          for key, value in classmapdict.items():
              if value[0] &gt; 0:
                  classmap = f'''
  class {key}
    bandwidth {value[0]}
    queue-limit {value[1]}
  '''
                  self.classmaplist.append(classmap)
              else:
                  continue
          self.classmaps = &quot;&quot;.join(self.classmaplist)
          return self.classmaps
  
      def __str__(self):
         return &quot;{0}&quot;.format(self.classmaps)
  </code></pre>
  <p>OUTPUT:</p>
  <pre><code># class cos-map-dscp-vo-2
  #   police 1000000 conform-action transmit exceed-action drop
  #   priority
  #
  # class cos-map-dscp-vs-2
  #   bandwidth 500
  #   queue-limit 83
  </code></pre>
  <p>SHOULD LOOK LIKE:</p>
  <pre><code># class cos-map-dscp-vo-2
  #   police 1000000 conform-action transmit exceed-action drop
  #   priority
  # class cos-map-dscp-vs-2
  #   bandwidth 500
  #   queue-limit 83
  </code></pre>